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

Fixed repo envs so terraform will add back in deployment branch protection if it is removed manually from GitHub #1981

Conversation

scott-doyland-burrows
Copy link
Contributor

Resolves #1955


Before the change?

Manually removing an environment's deployment branch protection in GitHub (setting it back to no restriction) would not show a diff when terraform was applied. This meant terraform and GitHub were out of line.

After the change?

Terraform brings the environment's deployment branch protection back inline with terraform.

The tests pass - albeit they don't give full coverage, and never did (I have not updated the tests). They need some extra work to make them better.

There are also two minor changes (as vscode was complaining) which just set lowercase for an error message and remove a full stop for another error message in two unrelated files.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

Copy link
Member

@kfcampbell kfcampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kfcampbell kfcampbell merged commit f85bfb8 into integrations:main Oct 26, 2023
3 checks passed
@scott-doyland-burrows scott-doyland-burrows deleted the fix/environment-deployment-branch-policy-no-diff branch October 27, 2023 09:48
avidspartan1 pushed a commit to avidspartan1/terraform-provider-github that referenced this pull request Feb 5, 2024
…ent branch protection if it is removed manually from GitHub (integrations#1981)

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
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