Add support for group.default_branch_protection_defaults.code_owner_approval_required
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Add the ability to set code_owner_approval_required in a group's default_branch_protection_defaults.
Implementation Guide
- Follow the
CONTRIBUTING.mdguide for setting up your local development environment. - Clone the community fork of this project.
- In
groups.go, addCodeOwnerApprovalRequiredto theBranchProtectionDefaultsandDefaultBranchProtectionDefaultsOptionsstructs. - In
groups.go, add encoding forCodeOwnerApprovalRequiredto theEncodeValuesfunction. - Update the unit tests in
groups_test.goto include the new field. - Add integration tests to
gitlab_test/groups_integration_test.goto verify the new field can be set on group creation, updated on a group, and returned when getting a group.
Edited by 🤖 GitLab Bot 🤖