-
Notifications
You must be signed in to change notification settings - Fork 6.8k
gh pr create
: Support Git's @{push}
revision syntax for determining head ref
#10513
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
Merged
BagToad
merged 40 commits into
trunk
from
kw/575-detect-push-target-for-local-branches-without-upstream-configuration
Apr 15, 2025
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
b61b229
doc: fix PullRequestRefs comment
BagToad a8d01c7
feat: support `@{push}` revision syntax
BagToad 6db9048
refactor: Refactor pr create
BagToad dc48625
test(pr create): test --head=<remote>:<branch>
BagToad cd67c2e
test(pr create): AT assert head repo and head ref
BagToad 84a35ca
refactor: rename IsPushEnabled for clarity
BagToad 1848beb
test(pr create): unset gh-resolved
BagToad 10e3949
refactor(pr create): use prRefs.GetPRHeadLabel()
BagToad a5fe37f
test(pr create): add AT for remote:branch syntax
BagToad c3087cd
refactor(pr create): Refactor NewCreateContext
BagToad 178fb40
refactor(pr create): Use PrRefs in CreateContext
BagToad c0c5d91
refactor(pr create): use GetPRHeadLabel()
BagToad f50dac5
docs(pr create): fix <repo_name>:<branch> desc.
BagToad 9f1cb0c
refactor(pr create): simplify head remote logic
BagToad cf58910
refactor(pr create): named headRefName var
BagToad 911079c
docs(pr create): add comments
BagToad ba6e2ec
test(pr create): skip tests that create forks
BagToad 9b96e6c
doc(pr create): fix typo in test comments
BagToad da235b1
tests(pr create): remove irrelevant comments
BagToad 1ce3d99
test(pr create): add logical spacing between operations
BagToad bab7dc6
test(pr create): update repo owner names in tests
BagToad 54da786
fix(pr create): update error handling
BagToad e999976
refactor(pr create): add PullRequestRefs `HasHead`
BagToad d524cbd
docs(pr create): clarify comment on head branch syntax
BagToad e9e57f3
doc(pr create): fix typo in comments
BagToad 6dae35b
test(finder): change assert to require
BagToad 041f02c
docs(pr create): standard <user>:<branch> syntax
BagToad 7bb5d71
doc(pr create): improve head repo resolution comments
BagToad 15ea861
docs(pr create): help text, doc user:branch syntax
BagToad 81d00a3
fix(pr create): use existing local variables
BagToad 188e138
test(pr create): add AT for no local repo
BagToad bf7bf99
fix(pr create & stubs): handle exitcode in stubs
BagToad 0611d9d
test(pr create): fix user:branch syntax AT
BagToad 76de5f0
test(pr finder): run test in parallel
BagToad 6004fc2
fix(pr create): use curly brace for vars in AT
BagToad bdfec50
fix(pr create): use REPO var in AT
BagToad 339e1a2
docs(pr create): add link for user:branch syntax
BagToad 028caa3
docs(pr create): clarify BaseRepo type in submitPR
BagToad ebd147b
Use verbose upstream setting
williammartin a9dbda6
Rework ref usage when finding and creating PRs
williammartin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test(pr create): unset gh-resolved
- Loading branch information
commit 1848beb94b8c74921fbeef0794fa1a1c3882fa36
There are no files selected for viewing
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.