Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Looking for API endpoint for pull requests that have met merge checks/restrictions

Cyrus Ghadiri August 3, 2022

I'm having trouble finding a way to see whether or not a pull request has passed all the merge checks, such as "Minimum number of approvals"

I thought it would be available in the specific pull request endpoint as seen below: 

https://api.bitbucket.org/2.0/repositories/<workspace>/<repo>/pullrequests/<pull_request_id>

but it doesn't seem to be the case. I also tried the branch restrictions for a branch as well though I don't believe it returns the right details regarding the rules for the branch.  

I've read that previously in 1.0 there was a parameter "canMerge" that showed that it passed all the checks. Anyone have any idea if there is any endpoints that can show this info?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 8, 2022

Hi Cyrus and welcome to the community.

I'm afraid that our API does not return this information at the moment.

We have a feature request for what you are asking in our issue tracker:

https://jira.atlassian.com/browse/BCLOUD-20734

The request was closed a few days ago as 'Won't Fix', but I would like to encourage you to add your vote in there (by selecting the Vote for this issue link), as the number of votes helps the development team and product managers better understand the demand for new features. If there is more demand for this feature, our development team may reconsider it.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events