You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A **label rule** specifies whether or not a Slack channel should be notified, based on the labels present in the given payload. For each rule, `ignore` is a blacklist of labels that should not notify the rule's channel, and `allow` is a whitelist of labels that should. If a label exists in both lists, the `ignore` list takes precedence. If an empty `ignore` list is provided, nothing is ignored. If an empty `allow` list is provided, everything is allowed. Both are optional; if neither are provided, the rule will always generate a notification for its channel.
83
+
A **label rule** specifies whether or not a Slack channel should be notified, based on the labels present in the given payload. For each rule, `ignore` is a blacklist of labels that should not notify the rule's channel, and `match` is a whitelist of labels that should. If a label exists in both lists, the `ignore` list takes precedence. If an empty `ignore` list is provided, nothing is ignored. If an empty `match` list is provided, everything is matched. Both are optional; if neither are provided, the rule will always generate a notification for its channel.
84
84
85
85
| value | description | optional | default |
86
86
|-|-|-|-|
87
-
|`allow`| if notifications match any label in this list, they should be routed to the channel | Yes | all labels allowed if no list provided |
88
-
|`ignore`| if notifications match any label in this list, they shouldn't be routed to the channel (even if they match any allow labels) | Yes | - |
87
+
|`match`| if notifications have any label in this list, they should be routed to the channel | Yes | all labels matched if no list provided |
88
+
|`ignore`| if notifications have any label in this list, they shouldn't be routed to the channel (even if they have any `match` labels) | Yes | - |
89
89
|`channel`| channel to use as webhook if the rule is matched | No | - |
90
90
91
91
## Prefix Options
@@ -98,13 +98,13 @@ A **label rule** specifies whether or not a Slack channel should be notified, ba
98
98
"default_channel": "default",
99
99
"rules": [
100
100
{
101
-
"allow": [
101
+
"match": [
102
102
"backend/api"
103
103
],
104
104
"channel": "aa"
105
105
},
106
106
{
107
-
"allow": [
107
+
"match": [
108
108
"backend/megaindex",
109
109
"backend/ahrefskit"
110
110
],
@@ -119,12 +119,12 @@ A **label rule** specifies whether or not a Slack channel should be notified, ba
119
119
120
120
### Prefix Rule
121
121
122
-
A **prefix rule** specifies whether or not a Slack channel should be notified, based on the filenames present in the commits associated with the given payload. The semantics for the `allow` and `ignore` fields are the same as those for label rules (see above).
122
+
A **prefix rule** specifies whether or not a Slack channel should be notified, based on the filenames present in the commits associated with the given payload. The semantics for the `match` and `ignore` fields are the same as those for label rules (see above).
123
123
124
124
| value | description | optional | default |
125
125
|-|-|-|-|
126
-
|`allow`| if commit files match any prefix in this list, they should be routed to the channel | Yes | all prefixes allowed if no list provided |
127
-
|`ignore`| if commit files match any prefix in this list, they shouldn't be routed to the channel (even if they match any allow prefixes) | Yes | - |
126
+
|`match`| if commit files have any prefix in this list, they should be routed to the channel | Yes | all prefixes matched if no list provided |
127
+
|`ignore`| if commit files have any prefix in this list, they shouldn't be routed to the channel (even if they have any `match` prefixes) | Yes | - |
128
128
|`channel`| channel to use as webhook if the rule is matched | No | - |
0 commit comments