pull request and bu

algosec January 23, 2018

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 ? 

1 answer

0 votes
Douglas Gnoato
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 26, 2018

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:

  • All reviewers approve - requires all reviewers to approve a pull request before merging.
  • Minimum approvals - requires at least the specified number of approvals before merging.
  • Minimum successful builds - requires at least the specified number of successful builds before merging.
  • No incomplete tasks - requires all tasks to be complete before merging.

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

algosec January 31, 2018

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

algosec January 31, 2018

So the PR is pending until the build ends.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events