The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Enforcing Merge checks in newly repositories

Tran Tien dung
Contributor
August 7, 2019

Hi everyone,

Is it possible to enable merge check by default? So whenever I create new repository, this repo must already enabled merge check.

Secondly, as I have many repositories, how could I ensure that merge check is enabled, also if some repositories being disable, it should be notified to administrators.

Thanks.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 9, 2019

Hello @Tran Tien dung,

Unfortunately it's not possible to turn on merge checks by default: there's currently no space for such meta-repo configuration, and we believe there're no sensible defaults for this particular aspect, so we can't make it up.

However, there's an API you can use to automate branch restrictions configuration:

Hope this helps.

Cheers,
Daniil

Tran Tien dung
Contributor
August 9, 2019

Thanks Daniil, I'm playing around with create branch-restriction, but got this error https://community.atlassian.com/t5/Bitbucket-questions/Bad-request-when-adding-Branch-Restrictions-using-the-Rest-API/qaq-p/1150581

I think I'm using wrong the Curl command. if you have idea about this, please let me know.

Thanks.

TAGS
AUG Leaders

Atlassian Community Events