Hello,
I would like to disable the merge button of the pull request when the build of the target branch fails. What is the best way to doing that?
I'm using Jenkins and with jenkins I can get easily the last Build status (
jenkinsUrl + jobNameURL + "/lastBuild/api/json
)
Can I do this with bitbucket api ?
Hi Joao, welcome to the Community!
Are you on Server or Cloud? The API will be able to achieve different things depending on which platform you are, you can check our documentation at Bitbucket Cloud API and Bitbucket Server REST API.
For Server, we also a tutorial that might be helpful for you, you can find it at Controlling when pull requests can be merged.
Hope that helps!
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.