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
Copy file name to clipboardExpand all lines: documentation/config_docs.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ A **label rule** specifies whether or not a Slack channel should be notified, ba
110
110
"backend/a5",
111
111
"backend/a4"
112
112
],
113
-
"branch_filters": [],
113
+
"branch_filters": "any",
114
114
"channel": "backend"
115
115
},
116
116
{
@@ -132,13 +132,13 @@ A **prefix rule** specifies whether or not a Slack channel should be notified, b
132
132
Default behavior is to apply each rule regardless of what branch is pushed, and when a rule is matched, show its `distinct` commits only.
133
133
Branch filters limit rule application to selected branches, and shows _all_ commits on match.
134
134
The filters can be declared globally with `filter_main_branch` (see above), or locally per rule with `branch_filters`, where the latter takes precedence.
135
-
To ignore a globally declared filter for a single rule, declare one locally with an empty list, as shown in the example above.
135
+
To ignore a globally declared filter for a single rule, declare one locally with value "any", as shown in the example above.
136
136
137
137
| value | description | default |
138
138
|-|-|-|
139
139
|`match`| if commit files have any prefix in this list, they should be routed to the channel | all prefixes matched |
140
140
|`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) | fall back on `match` field behavior |
141
-
|`branch_filters`| consider commits only if pushed ref branch is in this list | fall back on `filter_main_branch` field behavior (see above) |
141
+
|`branch_filters`| consider commits only if pushed ref branch is in this list; set to "any" to ignore `filter_main_branch` for this rule| fall back on `filter_main_branch` field behavior (see above) |
142
142
|`channel`| channel to notify if the rule is matched | required field |
0 commit comments