Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,888
Community Members
 
Community Events
165
Community Groups

How can I create custom pull request merge checks?

Hi, 

I would like to add custom pull request merge checks. It would be beneficial to add, for example, a REST API call to an external service that would return either 2XX to indicate check success or non-2XX status code to indicate check failure.

Would that be possible? Is there such a feature?

If not, how are you suggesting us implementing extra custom checks that would prevent a PR merge if they failed?

 

P.

1 answer

That would be great!

Looks like this feature is available for Bitbucket Server but not for Bitbucket Cloud

https://developer.atlassian.com/server/bitbucket/reference/plugin-module-types/repository-merge-check-plugin-module/

 

The only workaround I can think of is creating a step in bitbucket pipelines to do the checks and fail the build. Then the standard build check will block the PR merge.

https://bitbucket.org/blog/protect-your-master-branch-with-merge-checks

 

Any other suggestions?

Yes, I would like to have the ability to run a http endpoint or a sh file to check 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,263 views 2 9
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