You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.