terraform-provider-github
terraform-provider-github copied to clipboard
[BUG]: branch protection options no longer match GUI options, fail to enable settings on updates
Expected Behavior
github_branch_protection should fully manage all options available under "Branch protection rule" GUI settings.
Actual Behavior
No code options appear to manage the top level "Require a pull request before merging" and "Require approvals" check boxes in settings.
Scenario one: settings already enabled
Plan output:
Scenario two: settings not enabled
Terraform Version
Terraform v1.5.7 on darwin_amd64
- provider registry.terraform.io/integrations/github v5.45.0
Affected Resource(s)
- github_branch_protection
Terraform Configuration Files
resource "github_branch_protection" "master" {
repository_id = github_repository.repo.node_id
pattern = "master"
required_status_checks {
strict = "true"
}
required_pull_request_reviews {
dismiss_stale_reviews = true
required_approving_review_count = "2"
}
}
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Has this gotten any attention? This is basically preventing PR requirements from being enabled via the terraform provider. We have new repositories going out that no longer have correct branch protections and require manual editing.