Skip to content

notifications

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

notifications:
policies:
- tag_query: ''
comment_strategy: 'minimize'
KeyTypeDescription
policiesarrayA list of notification policy objects that specifies which comment update strategies apply for particular tags .
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.

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