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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.