Scope approval rules by protected branches via API
What does this MR do?
Updates API endpoints for creating and updating project-level approval rules to support a new protected_branch_ids
param (an array of IDs).
When this param is set, the ProtectedBranch
records matching those IDs will be associated to the ApprovalProjectRule
created/updated.
Rules that have associated ProtectedBranch
records will only apply to MergeRequest
s with a target_branch
that matches the protected branch rules.
Documentation MR: !22754 (merged).
Screenshots
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry - [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. - [-] Tested in all supported browsers
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
- [-] Label as security and @ mention
@gitlab-com/gl-security/appsec
- [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
- [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖