Skip to main content

When Modified

The when_modified directive can be used to match pull request file changes with autoplan and autoapply.

Keys

KeyTypeDescription
file_patternsarrayList of file globs to identify changes in a directory. Always relative to the root of the repository.
autoplanboolAutomatically run terrateam plan on a new pull request or an update on an existing one
autoplan_draft_prboolAutomatically run terrateam plan on a new draft pull request or an update on an existing one
autoapplyboolAutomatically run terrateam apply after merging a pull request

Default Configuration

when_modified:
file_patterns: ["**/*.tf", "**/*.tfvars"]
autoplan: true
autoplan_draft_pr: true
autoapply: false