Request new resource: gitlab_group_branch_protection

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

New Resource

I'm missing a resource to set branch protection for a group. I think it can be similar to gitlab_branch_protection. Maybe it can be support both project and group or create an own resource like below

I'm looking for something that I could use like this:

resource "gitlab_group_branch_protection" "admin_push" {
  group.                 = "12345"
  branch                 = "admin-protected"
  push_access_level      = "admin"
  merge_access_level     = "maintainer"
  unprotect_access_level = "maintainer"
}

Related GitLab APIs

API documentation: https://docs.gitlab.com/api/group_protected_branches/

Additional Details

Edited by 🤖 GitLab Bot 🤖