feat(groups): add code_owner_approval_required in a group's default_branch_protection_defaults

  • In groups.go, add CodeOwnerApprovalRequired to the BranchProtectionDefaults and DefaultBranchProtectionDefaultsOptions structs.
  • In groups.go, add encoding for CodeOwnerApprovalRequired to the EncodeValues function.
  • Update the unit tests in groups_test.go to include the new field.
  • Add integration tests to gitlab_test/groups_integration_test.go to 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

Merge request reports

Loading