Add the `inherited` field to Protected Branches
requested to merge gitlab-jh/jh-team/gitlab:feature/group-level-protected-branches-rest-api-attr-inherited into master
What does this MR do and why?
Related to #389442 (closed), epic &8679.
Previous MR: !90040 (merged), !106532 (merged)
- Add the attribute
inherited
to the project-level protected branches API. (Have no this in the group-level one) - Update the API docs of protected branches
- Update the entity of protected branch
Roadmap
- Add groups support to ProtectedBranchesFinder (!107988 - merged)
-
👉 Add the `inherited` field to Protected Branches (!110602 - merged) - Add Group protected branches API (!110603 - merged)
How to set up and validate locally
-
Enable the feature flag:
Feature.enable(:group_protected_branches)
-
The REST API of group-level protected branches will work as expected like the project-level one.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
/cc EM @daveliu
Edited by Song Huang