Refactor ApprovalRules::CreateService to support v2 rules

Refactor ApprovalRules::CreateService to support v2 approval rules.

Used by REST API (POST) and GraphQL mutations for creating approval rules. Currently only supports v1 rules. When v2_approval_rules FF is enabled, should create v2 rules instead.

What

  • Check v2_approval_rules feature flag
  • Create v2 rules when flag is enabled
  • Create v1 rules when flag is disabled
Edited Jan 21, 2026 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading