Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create custom pull request merge checks?

pmatsinopoulos
Contributor
November 29, 2018

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

3 votes
dennisbutovetsky
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 13, 2019

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?

Tales Marinho Godois
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 29, 2021

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

Like Jeff likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events