• 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 vote

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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

2,045 views 1 5
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