scutiger icon indicating copy to clipboard operation
scutiger copied to clipboard

Add command to find pull request for a commit

Open bk2204 opened this issue 5 years ago • 3 comments

Oftentimes, users wish to know which pull request introduced a commit. We should add a technique which works for at least GitHub, GitLab, and Bitbucket that finds the closest pull request that introduces a commit.

bk2204 avatar Apr 10 '20 01:04 bk2204

Oftentimes, users wish to know which pull request introduced a commit. We should add a technique which works for at least GitHub, GitLab, and Bitbucket that finds the closest pull request that introduces a commit.

Dustin4444 avatar Feb 28 '25 01:02 Dustin4444

For Bitbucket I do

  • git when-merged --log <commit> (link)
    • might need --recursive if the project likes complex merge histories
  • Take the PR number from the commit message

LemmingAvalanche avatar May 26 '25 09:05 LemmingAvalanche

Pull

Dustin4444 avatar May 26 '25 11:05 Dustin4444