cancel pull request if PR is not from specific branch(es) Edited

Hi,

Is is possible to cancel pull request if the target branch is, say, RELEASE and source branch is not DEVELOPMENT or TESTING. I am trying to use a pre-receive hook but not able to get 'inline script' syntax. Is there a way to use PullRequestOpenRequestedEvent Event Handler or pre receive hook to perform this? 

Thanks in Advance

-Amar

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

186 views 3 6
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