-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Find PRs using @{push}
#9208
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
Merged
Find PRs using @{push}
#9208
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0179381
Find PRs using @{push}
Frederick888 7fc35fd
Only find PRs w/ branch.<name>.merge if push.default = upstream/tracking
Frederick888 4254818
Find push remote using branch.<name>.pushRemote and remote.pushDefault
Frederick888 2d1e4d6
Add base gh pr view acceptance tests for changes
andyfeller eb16a75
Expand with gh pr status
andyfeller 8bb2879
Reflect coverage for view and status subcommands
andyfeller be250b3
Add renamed acceptance tests
andyfeller 0006091
Fix up intra-org fork test setup
andyfeller 48e2681
Merge branch 'trunk' into find-pr-by-rev-parse-push
jtmcg 0184380
Add missing git stubs to tests
jtmcg 4a9fd95
Add comments and a bit of code cleanup
jtmcg d289ddd
Use PushRemoteURL instead of RemoteURL in prSelectorForCurrentBranch
jtmcg aef2642
fixup! Add comments and a bit of code cleanup
Frederick888 41729b0
Refactor finder.Find and replace parseCurrentBranch with parsePRRefs
jtmcg a72bef9
Error if push revision doesn't match a remote
williammartin 6355ed7
WIP: push default defaults to simple
williammartin 5a8dd35
Add PushDefault method to git client
jtmcg e4d8ed0
Remove @{push} from branch config
jtmcg cdead50
Moved remote.pushDefault out of ReadBranchConfig and into finder
jtmcg d684834
Refactor pr status to use the ParsePRRefs helper on the Finder
jtmcg 4382bdf
Fix pr create tests
jtmcg 62106dc
Cleanup comment
jtmcg e31bfd0
Cleaned up some naming and comments
jtmcg e0f624b
Rename PRRefs to PullRequestRefs and PR comment cleanup
jtmcg 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
Find push remote using branch.<name>.pushRemote and remote.pushDefault
When using a push.default = current triangular workflow, apart from
using @{push} to determine the remote branch name, we should also follow
the
1. branch.<name>.pushRemote
2. remote.pushDefault
3. branch.<name>.remote
...list to determine which remote Git pushes to.- Loading branch information
commit 4254818dbdfa59b4f51e524687bd6cd49e7b61c2
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
Oops, something went wrong.
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.