GitHub pull request id from commit hash

Viewed 11637

How can I get GitHub PR id from commit hash? It is possible in git console or GitHub API?

4 Answers

The commit SHA for example is: 7dd1bcf5f2f5eeed34cc2ec63053098fba302b6c

  1. Go to the "Pull requests" tab
  2. In the filter enter: is:pr is:closed 7dd1bcf5f2f5eeed34cc2ec63053098fba302b6c

If the PR is not closed then remove is:closed

Related