-
Notifications
You must be signed in to change notification settings - Fork 763
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 ability to opt out of listing branches in github_repository #1010
Comments
Let me know what I can do to help :) |
👍 and a more generalized use case: I think a |
Came here to report this same problem, since the upgrade we have had to add:
to our code to fix spurious diffs cluttering up the plan output. We generally only one to control a handful of branches, but allow users to create / push to other branches and having the diff output makes the provider non-useful for auditing any manual changes that have been made. |
@k24dizzle should I look into something in particular? |
this seems like a decent workaround. Interested to learn more if there are other ideas. |
For what it's worth, this is also forcing us to stay with 4.14.0 for exactly the reasons given above. We also have hundreds of repositories with hundreds of branches that are not being cleaned properly. Having this in the state makes it explode. The
We switched to terragrunt because of the extremely slow speed to make changes, but I guess this would help us to speed it up even further. |
One idea I had, we could refactor out the I think as a matter of organization, Similar to |
It's not really a sufficient workaround IMO, as the branches still show up in the plan when there are any other diffs for the repo resource |
Are any resources being devoted to this issue? Our github management workspace is exceptionally slow as it crawls information about every branch in every repo resource and repo data source. |
I gave a shot to fix this issue here: #1117 Would appreciate any feedback on the best ways to potentially roll this change out. |
👋 Hey Friends, this issue has been automatically marked as |
This is an unresolved issue and so should remain open/active. |
Related to #892
Affected Resource(s)
Please list the resources as a list, for example:
I started seeing the branches being listed for repos in the
terraform plan
output, with the introduction of version 4.19.0Would it be possible to introduce a way to opt out of this behavior (where branches are managed by the
github_repository
resource)?There are repos we manage with the github provider that have 100s or even 1000s of branches, so I want to avoid cases where:
The text was updated successfully, but these errors were encountered: