Get the name of the branch containing this commit git branch -a --contains 9f12d89998fbd38a3fd3a1d21e7b028b9659c107 Search this commit in the PR gh pr list --search "${SHA}" --state merged gh pr list --search 9f12d89998fbd38a3fd3a1d21e7b028b9659c107