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

Add restrict_dismissals on github_branch_protection resource #839

Merged
merged 1 commit into from
Jul 26, 2021
Merged

Add restrict_dismissals on github_branch_protection resource #839

merged 1 commit into from
Jul 26, 2021

Conversation

jarylc
Copy link
Contributor

@jarylc jarylc commented Jun 29, 2021

Related Issue

Fixes #838

Approach

Added a new argument restrict_dismissals to github_branch_protection resource to allow Restrict who can dismiss pull request reviews to be checked by Terraform even when dismissal_restrictions is empty.

restrict_dismissals is ignored when dismissal_restrictions is not empty, similar to source_branch and source_sha from https://registry.terraform.io/providers/integrations/github/latest/docs/resources/branch and private and visibility from https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository.

I have tested this functionality locally on a private registry.

@jcudit jcudit merged commit 4dde196 into integrations:main Jul 26, 2021
kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants