Skip to content

Commit b6e54da

Browse files
committed
Update standard
1 parent 15db9c8 commit b6e54da

13 files changed

+1172
-982
lines changed

lib/node-labels.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ function resolveLabels (filepathsChanged, baseBranch, limitLabels = true) {
157157
}
158158

159159
const labels = (exclusiveLabels.length > 0)
160-
? exclusiveLabels
161-
: matchAllSubSystem(filepathsChanged, limitLabels)
160+
? exclusiveLabels
161+
: matchAllSubSystem(filepathsChanged, limitLabels)
162162

163163
// Add version labels if PR is made against a version branch
164164
const m = /^(v\d+\.(?:\d+|x))(?:-staging|$)/.exec(baseBranch)
@@ -194,14 +194,14 @@ function matchExclusiveSubSystem (filepathsChanged) {
194194
const isExclusive = filepathsChanged.every(matchesAnExclusiveLabel)
195195
var labels = matchSubSystemsByRegex(exclusiveLabelsMap, filepathsChanged)
196196
var nonMetaLabels = labels.filter((label) => {
197-
return !/^dont\-/.test(label)
197+
return !/^dont-/.test(label)
198198
})
199199

200200
// if there are multiple API doc changes, do not apply subsystem tags for now
201201
if (isExclusive &&
202-
nonMetaLabels.includes('doc') &&
203-
nonMetaLabels.length > 2 &&
204-
!hasAllTestChanges(filepathsChanged)) {
202+
nonMetaLabels.includes('doc') &&
203+
nonMetaLabels.length > 2 &&
204+
!hasAllTestChanges(filepathsChanged)) {
205205
const nonDocLabels = nonMetaLabels.filter((val) => {
206206
return val !== 'doc'
207207
})
@@ -216,7 +216,7 @@ function matchExclusiveSubSystem (filepathsChanged) {
216216

217217
function matchAllSubSystem (filepathsChanged, limitLabels) {
218218
return matchSubSystemsByRegex(
219-
subSystemLabelsMap, filepathsChanged, limitLabels)
219+
subSystemLabelsMap, filepathsChanged, limitLabels)
220220
}
221221

222222
function matchSubSystemsByRegex (rxLabelsMap, filepathsChanged, limitLabels) {

0 commit comments

Comments
 (0)