GitLab integration
May 31, 2026 ยท View on GitHub
argo-compare can post the comparison output as a comment on a GitLab Merge Request. Configure it with environment variables:
ARGO_COMPARE_COMMENT_PROVIDER=gitlab \
ARGO_COMPARE_GITLAB_URL=https://gitlab.com \
ARGO_COMPARE_GITLAB_TOKEN=$GITLAB_TOKEN \
ARGO_COMPARE_GITLAB_PROJECT_ID=12345 \
ARGO_COMPARE_GITLAB_MR_IID=10 \
argo-compare branch <target-branch>
Equivalent CLI flags are available:
argo-compare branch <target-branch> \
--comment-provider gitlab \
--gitlab-url https://gitlab.com \
--gitlab-token "$GITLAB_TOKEN" \
--gitlab-project-id 12345 \
--gitlab-merge-request-iid 10
GitLab CI auto-detection
When running inside GitLab CI, most settings are detected automatically:
--comment-providerdefaults togitlabwhenGITLAB_CIandCI_MERGE_REQUEST_IIDare present.--gitlab-urlfalls back toCI_SERVER_URL.--gitlab-project-idfalls back toCI_PROJECT_ID.--gitlab-merge-request-iidfalls back toCI_MERGE_REQUEST_IID.--gitlab-tokenfalls back toCI_JOB_TOKENif no explicit token is provided (ensure the token has the necessary scope to post notes).