Closed
Description
Terraform Version
Terraform v0.12.13
+ provider.github v2.2.1
Affected Resource(s)
github_branch_protection.required_pull_request_reviews.required_approving_review_count
Terraform Configuration Files
resource "github_branch_protection" "default" {
repository = github_repository.repo.name
branch = "master"
enforce_admins = true
required_status_checks {
strict = true
}
required_pull_request_reviews {
required_approving_review_count = null
}
}
Debug Output
N/a
Panic Output
N/a
Expected Behavior
What should have happened?
The provider should have configured the branch protection without any required reviewers. The upstream service supports null
for the required_approving_review_count
field, and assigns it accordingly if the containing required_pull_request_reviews
block is omitted.
Actual Behavior
What actually happened?
The provider configured branch protection with one reviewer, per the provider-configured default.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?
Nope.
References
https://github.com/terraform-providers/terraform-provider-github/pull/181