v2

latestOpenAPI 3.1.02026-08-0531314.2 KB
GitLab MR Status

Get Gitar's blocking status for a GitLab MR

Returns the current Gitar blocking status for a GitLab merge request. Intended for use in CI pipelines: fail the job when blocked == "yes" and mark it required for merge.

Organizations with a single connected GitLab instance can omit host. On a multi-instance organization, pass host to say which instance the project id belongs to — GitLab project ids are only unique within one instance.

get/external/gitlab/mr_status

Query parameters

project_idinteger required

GitLab project ID

mr_iidinteger required

GitLab merge request IID

hoststring

GitLab instance the project lives on (e.g. https://gitlab.com). Required on multi-instance organizations when the project id is ambiguous.

Response

MR blocking status returned successfully

blocked'yes' | 'no' | 'pending' required
All 3 operations