Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Disable Merge option for Pull Requests from UI

Hi,

Is it possible to restrict the users to merge their hotfix /feature / * branches to Master & develop only via command line and not using UI?

Thanks,

Sowmya

2 answers

Hi @Alastair Wilkes I believe I might have use case.

My team tends to follow git-flow when working, however we recently automated freezing dev code and releasing and we automated it using custom pipelines jobs.

Hence we freeze code from dev to release branch, and after we get greenlit, we release the code with another custom pipeline job:

  1. this job merges frozen code to master
  2. bumps any code version reference
  3. generates changelog
  4. tags and commits changes
  5. merges the changes back to dev
  6. and pushes it all back to origin

And since I wasn't able to find a way for bitbucket-pipelines to be the only one that could merge code to specific branch, it would really be neat to either disable the merge button, or even replace it with button that'll trigger specific pipelines job.

0 votes

Hi Sowmya,

No, this isn't possible -- usually teams want to require that changes must be merged through the UI, not the other way around! :)

Can I ask: if Bitbucket had this feature, how would it improve your workflow?

Alastair

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,925 views 10 16
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