-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
enhancementa request to improve CLIa request to improve CLIgh-prrelating to the gh pr commandrelating to the gh pr commandneeds-triageneeds to be reviewedneeds to be reviewed
Description
Describe the feature or problem you’d like to solve
The GH web GUI is able to show the set of pull-requests from which a commit "comes from". It's sub-optimal (both for a human and computer) to open a browser to find those PRs for a given commit or tag, when it could be done from the CLI
Proposed solution
gh pr view <commit-ish>should try to resolve the associated PR; if there are more than 1, maybe prompt the user?gh pr list --head <commit-ish>should only list "duplicate" PRsgh pr list <commit-ish>should find all PRs that include that commit. Ifcommit-ishis included in the base of such PRs, it can be ignored (unless there's a flag?)gh pr create --head <commit-ish>should either:- do as if
<commit-ish>is a temporary branch, as created bygit checkout -b tmp <commit-ish> - prompt the user before doing something like
git checkout -b tmp <base> && git cherry-pick <commit-ish>
- do as if
- etc... most other
prsub-cmds should be able to handle commits in some way
Additional context
None yet
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementa request to improve CLIa request to improve CLIgh-prrelating to the gh pr commandrelating to the gh pr commandneeds-triageneeds to be reviewedneeds to be reviewed