Expected Behavior
On a github_repository adding
allow_auto_merge = true
Should work without error.
Enterprise forking policy):
Organization forking policy:

Actual Behavior
The change creates the following Terraform plan as expceted:
Terraform will perform the following actions:
# github_repository.lessonnine-stripe-customer-data-deletion-microverse will be updated in-place
~ resource "github_repository" "lessonnine-stripe-customer-data-deletion-microverse" {
~ allow_auto_merge = false -> true
id = "stripe-customer-data-deletion.microverse"
name = "stripe-customer-data-deletion.microverse"
# (40 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
But Terraform apply errors as follows.
The change [creates the following Terraform plan](https://github.com/lessonnine/repositories.infrastructure/actions/runs/24675270789/job/72157643199) as expeted:
Terraform will perform the following actions:
# github_repository.lessonnine-stripe-customer-data-deletion-microverse will be updated in-place
~ resource "github_repository" "lessonnine-stripe-customer-data-deletion-microverse" {
~ allow_auto_merge = false -> true
id = "stripe-customer-data-deletion.microverse"
name = "stripe-customer-data-deletion.microverse"
# (40 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
The actual attribute is still changed correctly and re-applying will result in a clean plan.
Terraform Version
Terraform version: 1.11.4
integrations/github" provider version: 6.11.0
Affected Resource(s)
Terraform Configuration Files
resource "github_repository" "xyz" {
name = "xyz"
description = "Foo"
has_issues = false
has_projects = false
has_wiki = false
visibility = "private"
auto_init = true
delete_branch_on_merge = true
allow_auto_merge = true
}
Steps to Reproduce
Debug Output
Panic Output
Code of Conduct
Expected Behavior
On a
github_repositoryaddingShould work without error.
Enterprise forking policy):
Organization forking policy:

Actual Behavior
The change creates the following Terraform plan as expceted:
But Terraform apply errors as follows.
The actual attribute is still changed correctly and re-applying will result in a clean plan.
Terraform Version
Terraform version:
1.11.4integrations/github"provider version:6.11.0Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
Debug Output
Panic Output
Code of Conduct