Can we use the REST API to find pull-requests with a specific commit?

martinthomas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2023

In the event that a target branch already contains the commits in a pull request, the PR will be remotely merged.  I would like to determine which pull requests contain a specific commit so I can determine which approved pull requests led to the remote merge status.

 

From the API docs, I can use GET /rest/api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/commits to identify the commits. Is there a reverse operation that shows pull requests for a specific commit?

I am not finding the info in the API page here: https://developer.atlassian.com/server/bitbucket/rest/v807/

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events