GitLab

Approve merge request

Approve a merge request.

Inputs

Field

Type

Description

projectId [required]

string

The ID or path of the project

mergeRequestIid [required]

number

The internal ID of the merge request.

sha

string

The sha parameter works in the same way as when accepting a merge request: if it is passed, then it must match the current HEAD of the merge request for the approval to be added. If it does not match, the response code is 409.

Outputs

Field

Type

Description

internal_id

number

id

number

iid

number

project_id

number

title

string

description

string

state

string

created_at

string

updated_at

string

merge_status

string

approvals_required

number

approvals_left

number

approved_by

[object]