You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add unprotect_access_level and allowed_to_unprotect to branch protection
Adds the missing `unprotect_access_level` and `allowed_to_unprotect` attributes to the branch protection resource. Updates the tests to test with required fields, then optional fields, as `push_access_level` and `merge_access_level` are not required in the API.
The gitlab_branch_protection resource allows to manage the lifecycle of a protected branch of a repository.
7
-
~> The allowedtopush, allowedtomerge and codeownerapproval_required attributes require a GitLab Enterprise instance.
7
+
~> The allowed_to_push, allowed_to_merge, allowed_to_unprotect, unprotect_access_level and code_owner_approval_required attributes require a GitLab Enterprise instance.
8
8
Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/protected_branches.html
9
9
---
10
10
11
11
# gitlab_branch_protection (Resource)
12
12
13
13
The `gitlab_branch_protection` resource allows to manage the lifecycle of a protected branch of a repository.
14
14
15
-
~> The allowed_to_push, allowed_to_mergeand code_owner_approval_required attributes require a GitLab Enterprise instance.
15
+
~> The `allowed_to_push`, `allowed_to_merge`, `allowed_to_unprotect`, `unprotect_access_level`and `code_owner_approval_required` attributes require a GitLab Enterprise instance.
16
16
17
17
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html)
Description: `The `+"`gitlab_branch_protection`"+` resource allows to manage the lifecycle of a protected branch of a repository.
45
45
46
-
~> The allowed_to_push, allowed_to_mergeand code_owner_approval_required attributes require a GitLab Enterprise instance.
46
+
~> The `+"`allowed_to_push`"+`, `+"`allowed_to_merge`"+`, `+"`allowed_to_unprotect`"+`, `+"`unprotect_access_level`"+` and `+"`code_owner_approval_required`"+` attributes require a GitLab Enterprise instance.
47
47
48
48
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_branches.html)`,
0 commit comments