• Community
  • Products
  • Bitbucket
  • Questions
  • How can we stop people merging without a code review? They should be forced to fork and push to their fork and only approved changes from the fork merged. They flow should be the same for everyone. anyone pushes, anyone else reviews.

How can we stop people merging without a code review? They should be forced to fork and push to their fork and only approved changes from the fork merged. They flow should be the same for everyone. anyone pushes, anyone else reviews.

Stash...

This seems like a big hole in how the review approval process works.

we've seen people accidently clone the main repo instead of their fork.  Their pushes go straight in, no review.

how do we prevent this? 

 

Sorry, for topic I didn't see git/stash anywhere.  Don't know what topic to add.

 

 

to the guy who answered...I can't reply to your reply...

can you be more specific?

we already require that PRs have a reviewer approve it.

but that doesn't stop someone from going in the back door.

Where do you set such permissions?  I don't see anything in the GUI

1 answer

0 votes

In the branch permissions, you can add a permission to prevent changes without a pull request. This would force users to create a pull request from the fork instead of check in directly to the main repo.

PS: For the topic, select bitbucket-server.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

661 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot