0

I have a release branch say release/steamboat. We have many feature branches (say feature/ui, feature/engine).

Lets say I want to auto-fail a pull request when it is created from feature/XX to release/steamboat if the requester didn't merge release/steamboat beforehand into feature/XX.

I am wondering if there is a way to tell the pull request creator that he/she needs to merge from latest release before creating it.

We are using Stash 3.11.3. We have a Bamboo based CI setup.

I appreciate your help.

videoguy
  • 1,732
  • 2
  • 24
  • 49

1 Answers1

1

One solution is to configure the merge option to fast forward only.

If the developer doesn't rebase his branch with the target branch, the merge will fail.

You can change this setting in the Stash config properties file: https://confluence.atlassian.com/bitbucketserver/bitbucket-server-config-properties-776640155.html

enter image description here

You will have to restart the Stash service to take into account a change in this config file.

Bruno Lavit
  • 10,184
  • 2
  • 32
  • 38