Forums

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

Merge check default branch

Brent Ryan
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!
June 14, 2021

How do I enforce a merge check across all of bitbucket data center deployment that says you need at least 1 approval before merging a PR to the default branch?

 

It's easy to do if you wanted to hard code this to "master" but how do you make this work if others have a different default branch?

 

mergeRequest.pullRequest.toRef.displayId == "master"

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events