Skip to content

notifications

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

Default Configuration

notifications:
policies:
- tag_query: ''
comment_strategy: 'minimize'

Keys

KeyTypeDescription
policiesarrayA list of notification policy objects that specifies which comment update strategies apply for particular tags .

Policies

KeyTypeDescription
comment_strategystringSpecifies 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_querystringSee tag queries.

Examples

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).