Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Fix: remove invalid `gitlab_branch_protection.unprotect_access_level` value `"no one"`.
Merged
requested to merge halanipp/terraform-provider-gitlab:remove-invalid-branch-protection-unprotect-access-level-no-one into main
The API response body contains the same error message as all the other invalid values:
$ curl -s -H "Authorization: Bearer $YOUR_TOKEN" \
-H "Content-Type: application/json" \
-X POST \
https://gitlab.com/api/v4/projects/<project-id>/protected_branches/ \
--data '{"name":"main","unprotect_access_level":0}' | jq .
{
"error": "unprotect_access_level does not have a valid value"
}
Closes gitlab_branch_protection: unprotect_access_leve... (#1513 - closed)
Edited by Timo Furrer
Merge request reports
Activity
Please register or sign in to reply