Skip to content
Terrateam

notifications

The notifications configuration can be used to set different comment update strategies,

notifications:
policies:
- tag_query: ''
comment_strategy: 'minimize'
summary:
enabled: false
Key Type Description
policies array A list of notification policy objects that specifies which comment update strategies apply for particular tags .
summary object Controls the summary header shown at the top of plan and apply comments.
Key Type Description
comment_strategy string Specifies the strategy Terrateam will when creating new comments. Values are append (don’t modify old comments, just keep apending), minimize (old comments get minimized) or delete (old comments get removed). Default is minimize.
tag_query string See tag queries.
Key Type Description
enabled boolean When true, each plan and apply comment starts with a summary header: a one-line rollup and a table of the dirspaces (directory and workspace combinations) executed in that comment, with their result and, for plans, whether there are changes. This lets reviewers see what a comment covers without expanding the full output. Default is false.

The summary header is rendered above the collapsed plan/apply output. Enable it (Enterprise only):

notifications:
summary:
enabled: true

Multiple Comment Strategies for Diferent Dirspaces

Section titled “Multiple Comment Strategies for Diferent Dirspaces”
notifications:
policies:
- tag_query: 'dir:tf1'
comment_strategy: 'minimize'
- tag_query: 'dir:tf2'
comment_strategy: 'delete'

This configuration will apply different rules for two different dirspaces (dir:tf1 and dir:tf2).