we would like to have the following mechanism for PR
1) create a PR
2) send to review
3) approved to be merged
4) pre -merged - triggers a CI build
5) if CI fails- the merge is declined.
how do I connect the CI status with the PR in hand ?
Hey Gabby.
It's possible to set Merge Checks in Bitbucket to prevent a merge from happening.
Bitbucket Bitbucket has the following default merge checks:
Besides that you can also create your own merge check plugin if you need to adapt it to your workflow.
You can see all and even more information on the article below
https://confluence.atlassian.com/bitbucketserver/checks-for-merging-pull-requests-776640039.html
Hope that helps.
Douglas Gnoato
Thanks Douglas,
I am just making I was understood. I would like to have sort of a pre merge hook which will trigger the build.if build had passed, it will allow the PR to be merged.otherwise, it will deny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.