approve_merge_request
Approve a merge request to record your review approval without merging or modifying it. Handles permission checks and optional re-authentication, and returns the updated approval status.
Instructions
Approve a merge request. Use this to record an approval on an existing merge request; it does not merge the request or change its source branch. The operation changes review state, may require re-authentication or approval permission, and returns the updated approval result or a permission/state error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | The HEAD of the merge request. Optional, but used to ensure the merge request hasn't changed since you last reviewed it | |
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| approval_password | No | Current user's password. Required if 'Require user re-authentication to approve' is enabled in the project settings | |
| merge_request_iid | Yes | The IID of the merge request to approve |