@@ -157,8 +157,8 @@ function resolveLabels (filepathsChanged, baseBranch, limitLabels = true) {
157
157
}
158
158
159
159
const labels = ( exclusiveLabels . length > 0 )
160
- ? exclusiveLabels
161
- : matchAllSubSystem ( filepathsChanged , limitLabels )
160
+ ? exclusiveLabels
161
+ : matchAllSubSystem ( filepathsChanged , limitLabels )
162
162
163
163
// Add version labels if PR is made against a version branch
164
164
const m = / ^ ( v \d + \. (?: \d + | x ) ) (?: - s t a g i n g | $ ) / . exec ( baseBranch )
@@ -194,14 +194,14 @@ function matchExclusiveSubSystem (filepathsChanged) {
194
194
const isExclusive = filepathsChanged . every ( matchesAnExclusiveLabel )
195
195
var labels = matchSubSystemsByRegex ( exclusiveLabelsMap , filepathsChanged )
196
196
var nonMetaLabels = labels . filter ( ( label ) => {
197
- return ! / ^ d o n t \ -/ . test ( label )
197
+ return ! / ^ d o n t - / . test ( label )
198
198
} )
199
199
200
200
// if there are multiple API doc changes, do not apply subsystem tags for now
201
201
if ( isExclusive &&
202
- nonMetaLabels . includes ( 'doc' ) &&
203
- nonMetaLabels . length > 2 &&
204
- ! hasAllTestChanges ( filepathsChanged ) ) {
202
+ nonMetaLabels . includes ( 'doc' ) &&
203
+ nonMetaLabels . length > 2 &&
204
+ ! hasAllTestChanges ( filepathsChanged ) ) {
205
205
const nonDocLabels = nonMetaLabels . filter ( ( val ) => {
206
206
return val !== 'doc'
207
207
} )
@@ -216,7 +216,7 @@ function matchExclusiveSubSystem (filepathsChanged) {
216
216
217
217
function matchAllSubSystem ( filepathsChanged , limitLabels ) {
218
218
return matchSubSystemsByRegex (
219
- subSystemLabelsMap , filepathsChanged , limitLabels )
219
+ subSystemLabelsMap , filepathsChanged , limitLabels )
220
220
}
221
221
222
222
function matchSubSystemsByRegex ( rxLabelsMap , filepathsChanged , limitLabels ) {
0 commit comments