Avoid users from directly pushing the code changes to specific branches

Hi all,

How can i avoid users from directly pushing the code to branches. (Which hook can i use for this)

Is there any way to check whether the branch is configured in stash server (with hook)?

1 answer

Hi,

You just need to set the branch permissions correctly, no need for plugins:

https://confluence.atlassian.com/display/STASH/Using+branch+permissions

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

266 views 0 12
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