Create and apply merge rules

Merge rules control who can merge pull requests.

Note: Merge rules are not the same as merge strategies. Merge strategies apply only to Git repositories and control how pull requests are merged. For details, see Use merge strategies for pull requests.

Create merge rules

As an administrator, you can manage the rules that control who can merge pull requests.

To create a merge rule:

  1. In PulseUno, navigate to Administration > Merge Rules.

  2. On the Merge Rules pages, click New Merge Rule .

  3. On the New Merge Rule page, provide the following details:

    Field Description
    Title Enter a name for the new merge rule.
    Automatically merge To enable pull requests to be merged automatically, select Automatically merge when a pull request is approved. The automatic merge is performed by the repository’s system user in the background.
    Conversations

    Define how pull request conversations affect the merge:

    • Ignore conversations (default).
    • Do not verify conversations.
    • All pull requests must be Resolved and Accepted.
    • All pull requests must be Resolved.
    Check lists Select All check list items must be checked to enable merging only after all items on the check list are selected.
    Who can merge To display the Merge button in pull requests for specific users, select the author and/or reviewers. These users must have the correct privileges to perform a merge.
    Merge gatekeepers To add other users who can see the Merge button, click New and add merge gatekeepers. These users must have the correct privileges to perform a merge.
  4. Click Save.

Back to top

Apply merge rules

As an administrator, you can apply rules for merging pull requests to a stream/branch or a product/Git repository.

For details on how to create custom merge rules, see Create merge rules.

To apply a merge rule to a product or a Git repository:

  1. In PulseUno, navigate to Spaces, select a space, and then select a product or a Git repository.

  2. In the sidebar, select Settings > Reviewing Changes.

  3. On the Reviewing Changes page, in the Pull Requests section, select Use custom merge rule. Then select a rule you created earlier.

  4. Click Save.

To apply a merge rule to a stream or branch:

  1. In PulseUno, navigate to Spaces, select a space, and then select a product or a Git repository.

  2. Select a stream or branch.

  3. In the sidebar, select Settings.

  4. Select the Pull Requests tab.

  5. From the Merge Rule list, select a rule. To use the product's or repository’s setting, select Use the product’s default rule.

  6. Click Save.

Back to top

See also: