git - Find a Pull Request on Github where a commit was originally created -


pull requests great understanding larger thinking around change or set of changes made repo. reading pull requests great way "grok" project as, instead of small atomic changes source, larger groupings of logical changes. analogous organizing lines in code related "stanzas" make easier read.

i find myself looking @ file or commit, , wonder if there way backtrack commit pull request created it. pull request have been merged eventually, not necessary merge-commit.

you can go github , enter sha search bar, make sure select "issues" link on left.

updated 13 july 2017

via github ui there easy way this. if looking @ commit in list of commits in branch in ui, click on link commit itself. if there pr commit , wasn't added directly branch, link pr listing pr number , branch went directly under commit message @ top of page. enter image description here


example of finding pr clicking on link commit

if have commit sha , nothing else , don't want go digging around it, add /commit/[commit sha] repo url, , see commit page, pr link if exists. example, if sha 52797a7a3b087231e4e391e11ea861569205aaf4 , repo https://github.com/glimmerjs/glimmer-vm , go https://github.com/glimmerjs/glimmer-vm/commit/52797a7a3b087231e4e391e11ea861569205aaf4


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -