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

后端 未结 6 2132
暗喜
暗喜 2020-12-12 11:14

Pull Requests are great for understanding the larger thinking around a change or set of changes made to a repo. Reading pull requests are a great way to quickly \"grok\" a p

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 11:35

    Since Oct. 13, 2014, this should be straightforward:

    For example:

    You can see for the file hakimel/reveal.js/plugin/markdown/markdown.js, my contribution now comes with a reference to the PR #734 it originated.

    PR from contrib

    This comes from Linking merged pull requests from commits:

    We've been including the containing branches and tags on commit pages to give you more context around changes. Now, commits in a repository's default branch will also show you the pull request that introduced them.

    commit with PR reference in it!

    In the pull request, you can see the discussion around why the commit was introduced, and get a clearer picture of the reason for the change.

    As always, if you know the commit SHA, you can skip the commit page and search for the pull request directly.

提交回复
热议问题