Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work when remote URL doesn't have .git suffix #7

Open
wants to merge 1 commit into
base: feature/print-pr-links
Choose a base branch
from

Conversation

greglockwood
Copy link
Owner

@greglockwood greglockwood commented Jan 9, 2021

PR Description
realyze#30 Added ability to customise the base branch
#3 Fixed bug where branches were always being pushed
#4 Cater for body being nullish or empty
#5 Putting the table back in 'table of contents'!
#6 Added support to print links to PRs in terminal
👉 #7 Work when remote URL doesn't have .git suffix
realyze#31 [combined branch] Combined changes

Which problem does this PR solve?

I discovered when I was testing on my fork, which had a git remote URL of https://github.com/greglockwood/pr-train, without the .git extension, that the current code incorrectly assumed that the remote URL ended in .git.

Main changes

Tweaked the code to not require the .git extension when extracting the nickname and repo (but remove it if it is there).

How I tested it works

I managed to use pr-train on my fork (at least initially). It doesn't seem to really support chains of PRs across forks.

@greglockwood greglockwood force-pushed the feature/print-pr-links branch from c5c40a1 to fd941be Compare January 18, 2021 09:17
@greglockwood greglockwood force-pushed the feature/work-without-git-remote-extension branch from dcd276e to 0f03fb9 Compare January 18, 2021 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants