It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

pull request and bu

Gabby Romano Jan 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 Jan 26, 2018 • edited

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

Gabby Romano Jan 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

Gabby Romano Jan 31, 2018

So the PR is pending until the build ends.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,971 views 1 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you