Forums

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

Disable Merge option for Pull Requests from UI

Sowmya Srinivasapura Devaraja
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 18, 2018

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

0 votes
Grzegorz Śliwiński
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!
July 22, 2020

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
Alastair Wilkes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 25, 2018

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
AUG Leaders

Atlassian Community Events