You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: No warning/error on conflicting resource properties for github_repository #2264
The Terraform provider currently exhibits a problematic behavior where it silently ignores certain configuration settings when conflicting configurations are present.
Specifically, if a user defines squash_merge_commit_message or squash_merge_commit_title while disabling squash merges through allow_squash_merge = false, these settings are rendered meaningless. Similarly, specifying merge_commit_message or merge_commit_title without enabling allow_merge_commit has no effect.
Although this behavior is documented, relying solely on documentation is insufficient. Users may easily overlook these details, leading to unexpected outcomes and configuration confusion.
To enhance user experience and prevent silent misconfigurations, the provider should implement stronger validation mechanisms. Instead of silently ignoring conflicting settings, it should either:
Issue a warning during plan or apply stages, explicitly informing users about the conflict and the settings being ignored.
Throw an error, preventing the deployment of a configuration containing these contradictions, ensuring users address the issue before proceeding.
This proactive approach would provide clearer feedback, reduce user frustration, and promote a more robust and reliable configuration process.
Actual Behavior
see above
Terraform Version
v1.8.3
Affected Resource(s)
github_repository
Terraform Configuration Files
No response
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
Reacted by Oliver Mannion, Staffan Forsell and Justin Gorny
👋 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!
👋 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!
Activity
github-actions commentedon Mar 15, 2025
👋 Hey Friends, this issue has been automatically marked as
stalebecause it has no recent activity. It will be closed if no further activity occurs. Please add theStatus: Pinnedlabel if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!garysassano commentedon Mar 15, 2025
Keep.
tekumara commentedon May 3, 2025
I've hit this too, the symptoms I've seen are a plan to update
merge_commit_messageandmerge_commit_titleeven whenallow_merge_commit=false, eg:Which then applies successfully but does nothing, so on the next plan it wants to redo the above.
If however I try to make the same change via the api directly I get:
A validation error during the plan would be ideal, if that's possible
github-actions commentedon Jan 28, 2026
👋 Hey Friends, this issue has been automatically marked as
stalebecause it has no recent activity. It will be closed if no further activity occurs. Please add theStatus: Pinnedlabel if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!garysassano commentedon Jan 28, 2026
Keep.
deiga commentedon Jan 29, 2026
@garysassano Would you be willing to submit a PR for this change?
github_repositoryresource #3133