Create merge rules

As an administrator, you can set up conditions that branches must meet to be merged into other branches.

To create a merge rule:

  1. From the Organization settings page, go to Merge Rules > New Merge Rule.
  2. Select the Merge condition.
  3. Select the repository the condition should apply to.
  4. Add the source branch.
  5. Add attributes in the form of name/value pairs (optional).
  6. Add the destination branch. Note: You can choose to enable the rule or enable it later.
  7. Select Save rule.