Skip to main content

Update related pull requests automatically when the remote state is updated

When terraform plan or tfmigrate plan are run in the target A, tfaction sets a pull request label A.

When a pull request of the target A is merged and terraform apply or tfmigrate apply are run in the target A, tfaction updates pull request breanches which have a pull request label A by GitHub API.

image

By updating pull request branch, the result of CI including uploaded Terraform Plan file is updated. Otherwise, an uploaded Terraform Plan file becomes stale and it would fail to run terraform apply.

Disable this feature

tfaction >= v0.5.23 #892 #898

caution

We don't recommend disabling this feature.

By updating pull request branch, the result of CI including uploaded Terraform Plan file is updated. Otherwise, an uploaded Terraform Plan file becomes stale and it would fail to run terraform apply.

If this feature is disabled, users may forget to update Terraform Plan files and terraform apply fails.

In some use case the maintainer of workflows and users of workflows are different. In that case, users aren't familiar with tfaction and they don't know that they have to update the plan file. And they can't understand the cause when terraform apply fails.

So we recommend enabling this feature, but you can disable this feature at your own risk.

You can disable this feature.

tfaction-root.yaml

update_related_pull_requests:
enabled: false