CI: New predefined variable: CI_MERGE_REQUEST_STATUS = open/merged/closed

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem to solve

I'd like to know if the MR the job is running for is open, merged or closed.

CI_MERGE_REQUEST_STATUS = open / merged / closed (or something like this)

Rationale: Some jobs are not intended for retry when the corresponding MR was closed.

Intended users

DevOps

Permissions and Security

Documentation

What does success look like, and how can we measure that?

Links / references

gitlab-ce~4107616 @ayufan @grzesiek @markglenfletcher @brendan

Edited Aug 19, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading