Suppose you stumble across a git commit SHA (e.g. 567ac8e). If you want to find what Pull Request it came from, you can just search for it.

For example:

Pull Requests search result

It works even on PRs where you used "Squash and merge".

Nifty!

SHAs that were part of a PR that used "Squash and merge" will not show up under the "Commits" page.
But ever SHA, even if it was part of a "Squash and merge" will have a URL of its own. For example, https://github.com/peterbe/admin-peterbecom/commit/567ac8e

And from there, you can also get a link to the Pull Request it was part of. For example:

SHA permalink page

Comments

Your email will never ever be published.

Previous:
Always run biome migrate after upgrading biome August 16, 2025 Node, JavaScript, Bun
Related by category:
How to run a GitHub Action workflow step if a file exists April 24, 2023 GitHub
Useful GitHub.com trick I learned today: l March 19, 2025 GitHub
How I built an index of my blog posts on my GitHub profile page December 13, 2024 GitHub
Search GitHub issues by title, only May 31, 2024 GitHub
Related by keyword:
How to install Python Poetry in GitHub Actions in MUCH faster way July 27, 2021 Python
How to know if a PR has auto-merge enabled in a GitHub Action workflow May 24, 2022 GitHub
Github Pull Request Triage tool March 6, 2014 Web development, AngularJS
gg - A prototype to rule Git, GitHub and Bugzilla May 6, 2016 Python, Web development