notifications
The notifications configuration can be used to set different comment update strategies,
Default Configuration
Section titled “Default Configuration”notifications: policies: - tag_query: '' comment_strategy: 'minimize'| Key | Type | Description |
|---|---|---|
policies | array | A list of notification policy objects that specifies which comment update strategies apply for particular tags . |
Policies
Section titled “Policies”| 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. |
Examples
Section titled “Examples”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).