Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request: support null for required_approving_review_count #294

Closed
skeggse opened this issue Nov 12, 2019 · 5 comments
Closed

request: support null for required_approving_review_count #294

skeggse opened this issue Nov 12, 2019 · 5 comments
Labels
r/branch_protection Status: Stale Used by stalebot to clean house Type: Bug Something isn't working as documented

Comments

@skeggse
Copy link

skeggse commented Nov 12, 2019

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:

  1. 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

@iniinikoski
Copy link

Also bumped into this... :|

@jcudit jcudit added Type: Bug Something isn't working as documented r/branch_protection labels Dec 8, 2020
@rradillen
Copy link

rradillen commented Nov 29, 2021

3 years later I am still running into this issue: PR 971 could also provide an acceptable fix for this bug

@github-actions
Copy link

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

@github-actions github-actions bot added the Status: Stale Used by stalebot to clean house label Dec 10, 2022
@kfcampbell
Copy link
Member

Closing as #971 has been merged and released.

@skeggse
Copy link
Author

skeggse commented Dec 12, 2022

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r/branch_protection Status: Stale Used by stalebot to clean house Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

5 participants