Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/check-pull-request-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ jobs:
'performance:', // To refactor to 'ci: ' in the future
'run-tests:' // Unused since GitLab migration
]
// Exact-match labels that don't fit a category prefix (e.g. labels applied
// by external automation tooling).
const exactAllowlist = [
'campaigner-automated-change'
]
// Re-fetch labels only if the previous step modified them (ex: "Bits AI" removal)
let prLabels
if (process.env.LABELS_STALE === 'true') {
Expand All @@ -156,7 +161,10 @@ jobs:
// Look for invalid labels
const invalidLabels = prLabels
.map(label => label.name)
.filter(label => validCategories.every(prefix => !label.startsWith(prefix)))
.filter(label =>
!exactAllowlist.includes(label) &&
validCategories.every(prefix => !label.startsWith(prefix))
)
const hasInvalidLabels = invalidLabels.length > 0
// Get existing comments to check for blocking comment
const comments = await github.rest.issues.listComments({
Expand Down
Loading