Allow Automated Creation of the Coverage-Check and License-Check Approval Rules
Trying to create either the Coverage-Check
or License-Check
rules from Terraform results in the following errors. Changing the rule_type
value to the ones suggested in the error generates the error expected rule_type to be one of [regular any_approver]
.
│ Error: POST https://gitlab.com/api/v4/projects/43241439/approval_rules: 400 {message: {name: [Coverage-Check is reserved for code_coverage report type]}}
│
│ with gitlab_project_approval_rule.coverage_check,
│ on main.tf line 42, in resource "gitlab_project_approval_rule" "coverage_check":
│ 42: resource "gitlab_project_approval_rule" "coverage_check" {
│
╵
╷
│ Error: POST https://gitlab.com/api/v4/projects/43241439/approval_rules: 400 {message: {name: [License-Check is reserved for license_scanning report type]}}
│
│ with gitlab_project_approval_rule.license_check,
│ on main.tf line 50, in resource "gitlab_project_approval_rule" "license_check":
│ 50: resource "gitlab_project_approval_rule" "license_check" {
Implementation Details
- Implement
report_approver
rule_type
ingo-gitlab
. - Implement
report_type
ingo-gitlab
. - Align provider implementation with upstream API from the points above.
- It would also be great to update the upstream docs to match the API implementation.
Edited by Timo Furrer