approve_merge_request
Record your approval on a merge request without merging it. Use this to update review state, verify the request is unchanged, and handle re-authentication when required.
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 | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| 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 |