Find PR from given Tag

How to extract a merged PR link when all I have is the tag on the merge commit ?

Even in 2 steps - given a commit - how can I find the relevant pr that introduce to main branch ?


1 Like

Hi @Jgafner

You can use this endpoint: /rest/api/latest/projects/<projectKey>/repos/<repoSlug>/commits/<commit hash>/pull-requests.
This will list all pull requests that the specified commit was part of.

See REST Resources Provided By: Bitbucket Server - REST

Hope this helps.


1 Like