feat(groups): add code_owner_approval_required in a group's default_branch_protection_defaults
- 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.
GET groups/:id API exposes this field as code_owner_approval_required in the default_branch_protection_defaults JSON: https://docs.gitlab.com/api/groups/
Reference Issue : #2214
Edited by Preethi Atchudan