Updated on 2023-07-25 GMT+08:00

Detailed Description of Approval Gate

The approve gate supports only the merge requests whose merge mechanism is Approval.

Opening/Closing the Gate

  1. Go to the target repository and choose Settings > Policy Settings > Merge Requests.
  2. Click Create to configure a branch policy for the target branch.
  3. Configure the Gate.

    • Set Approvals Required to a number except 0 and click OK to save the settings. The gate is enabled.
    • Set Approvals Required to 0 and click OK to save the settings. The gate is closed.

Effect of Gate Triggering

  • Approval gate: passed: It is displayed when the number of approvers who give pass reaches the Approvals Required.

  • Approal gate: failed: It is displayed when the number of approvers who give pass does not reach the Approvals Required.

Passing of the Gate

After completing the approval, the approvers need to choose Details > Approval Gate and click Pass. The approval is passed. For details, see Setting Branch Policies.