Create a predefined variable for MR approved by code owners

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

Problem

As a devops engineer, i want to run different downstream pipelines based on approvers, so I can keep my team moving and pipelines running short.

Use Case

The GitLab engineering productivity team has rules setup to run a full regression test suite when an MR is approved by non-codeowners or codeowners, and run a smaller set of tests before approvals. When the non-codeowner approves, there's no way for pipelines to know if the merge request has non-codeowner approvals currently.

Proposal(s)

  • Create a new variable specific to codewners
  • modify the existing variable return values to differentiate codeowner vs. not (could be a breaking change?)
Edited by 🤖 GitLab Bot 🤖