This repository was archived by the owner on Nov 25, 2022. It is now read-only.
Conversation
If argument $1 is present on git open-pr-github, e.g. git open-pr-github my-branch Use $1 (my-branch) as the target branch (a.k.a. base branch) when creating the PR URL. If $1 is omitted, create the PR URL with no explicit target branch (which will target the repo's default branch). See #139
Configure open-pr-github to display branches when using tab completion, by default Git would have autocompleted files. See https://salferrarello.com/git-alias-tab-completion-for-functions/ See #139
0ae311b to
f36d234
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR maintains the existing behavior where
git open-pr-github
opens the GitHub URL to create a PR from the
current branch into the repo's default branch.
In addition, the command now accepts an argument
for the target (a.k.a. base) branch.
git open-pr-github my-branch
will now open a the GitHub URL to create a PR from
the current branch into the given branch ("my-branch")
Resolves #139