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.
blocked is "yes", and passes otherwise. By marking this job as required for merge in your GitLab project settings, you get effective merge blocking without needing GitLab approval rule API access.
integrations:read scope. Store it as a CI/CD variable (e.g. GITAR_TOKEN) in your GitLab project settings..gitlab-ci.yml:
gitar-check as a required status check. This prevents merging when the job fails.
| Value | Meaning |
|---|---|
yes | Gitar found issues. The CI job fails and the MR cannot be merged. |
no | Gitar approved the MR, or a human bypassed the block. The CI job passes. |
pending | Gitar has not reviewed this MR yet. The CI job passes by default. |
gitar unblock on the MR. Gitar will process the command, update the status, and automatically re-trigger the pipeline. The gitar-check job will then pick up the new status and pass, allowing the MR to be merged.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
GitLab project ID
x >= 0GitLab merge request IID
x >= 0MR blocking status returned successfully
Pipeline-friendly MR status returned to SoFi's CI job.
yes → CI job should fail; no → approved or human bypass, pass; pending → no review yet, pass.
yes, no, pending