Forums

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

prevent push to a branch which is in a pull request

Jens Müller
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!
April 12, 2018

Is there any way in bitbucket to prevent pushing to a branch which is in a pullrequest?

 

My problem is, that if there is a pull request reviewed and not merged, i can push a change and merge that without any review. But that should not be possible.

 

 

1 answer

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 12, 2018

You can use an addon like "Auto Unapprove for Bitbucket Server" (from Atlassian) to automatically un-approve a PR when you add more content to it. That will force the reviewer to review the new code that came in.

See https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.stash-auto-unapprove-plugin/server/overview for more details.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events