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

Get merge checks status of pull request via api

Sharon Kurelovsky
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!
March 4, 2024

Hello everyone,

I have been trying to search for a way to obtain the merge checks status of an open pull request in the API documentation of bitbucket, but I have not been able to find a solution. I am trying to create a job to merge pull requests, but I need to ensure that all the merge checks have passed before proceeding.

Has anyone encountered this problem before?

1 answer

1 vote
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2024

Hi @Sharon Kurelovsky ,

Yeah, the checks statues are not available via the REST API. One way to do this is to compute the checks yourself, based on the branch restrictions API. This API lets you know which checks are enabled. Then you can query the actual data e.g. PR/builds and verify if the condition is passing.

You might be interested in Flowie, the we Bitbucket addon we provide. It has its own merge checks, which you can use query the status. Most of the commons workflows are covered by built-in plugins, and if not covered you can contact us and we can help getting your workflow supported. 

Cheers,
Renato

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events