-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Description
Describe the feature or problem you’d like to solve
When I'm exploring a repository, I like to review the PR associated with a given commit since it will often include helpful context that doesn't make it into the commit message.
To hop from a commit hash to the associated PR, I do the following:
- Discover an interesting commit via
git log|show|blame - Manually open a URL like this in my browser: https://github.com/organization/repository/commits/commit-hash
- Click the little PR link below the commit message
Proposed solution
gh pr find commit-hash
This would ideally print the PR's URL on a single line so it composes with other utilities, like open.
Reactions are currently unavailable