File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,6 +141,11 @@ jobs:
141141 'performance:', // To refactor to 'ci: ' in the future
142142 'run-tests:' // Unused since GitLab migration
143143 ]
144+ // Exact-match labels that don't fit a category prefix (e.g. labels applied
145+ // by external automation tooling).
146+ const exactAllowlist = [
147+ 'campaigner-automated-change'
148+ ]
144149 // Re-fetch labels only if the previous step modified them (ex: "Bits AI" removal)
145150 let prLabels
146151 if (process.env.LABELS_STALE === 'true') {
@@ -156,7 +161,10 @@ jobs:
156161 // Look for invalid labels
157162 const invalidLabels = prLabels
158163 .map(label => label.name)
159- .filter(label => validCategories.every(prefix => !label.startsWith(prefix)))
164+ .filter(label =>
165+ !exactAllowlist.includes(label) &&
166+ validCategories.every(prefix => !label.startsWith(prefix))
167+ )
160168 const hasInvalidLabels = invalidLabels.length > 0
161169 // Get existing comments to check for blocking comment
162170 const comments = await github.rest.issues.listComments({
You can’t perform that action at this time.
0 commit comments