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
I'm using this provider as a way to setup templated repositories for API services. As such, each Terraform apply attempts to commit a large number of files to a branch. When I apply this for a folder containing ~50 files, I expect all of them to be committed to the same branch and a PR to be created on that branch afterward.
Actual Behavior
I get the following error for a number of the files:
Re-running the terraform apply always results in a success so I know it's not an issue with the files themselves. It appears that I'm thrashing the GitHub API but I don't see an alternative here.
resource"github_repository_file""this" {
for_each=local.src_filesrepository=var.repositoryfile=replace(each.key, "service/", local.service_path)
content=each.valuebranch=var.branchcommit_message="Created ${replace(each.key, "service/", local.service_path)}"autocreate_branch=trueautocreate_branch_source_branch="main"overwrite_on_create=false
}
resource"github_repository_pull_request""this" {
base_repository=var.repositorybase_ref="main"head_ref=var.branchtitle="${local.proper_name} Service - Infrastructure"body="This PR includes the standard API service infrastructure, customized for the ${local.proper_name} service. This was generated by Terraform."maintainer_can_modify=truedepends_on=[github_repository_file.this]
}
Steps to Reproduce
terraform init
terraform apply
Debug Output
No response
Panic Output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Expected Behavior
I'm using this provider as a way to setup templated repositories for API services. As such, each Terraform apply attempts to commit a large number of files to a branch. When I apply this for a folder containing ~50 files, I expect all of them to be committed to the same branch and a PR to be created on that branch afterward.
Actual Behavior
I get the following error for a number of the files:
Re-running the
terraform apply
always results in a success so I know it's not an issue with the files themselves. It appears that I'm thrashing the GitHub API but I don't see an alternative here.Terraform Version
Terraform v1.9.5
on linux_amd64
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: