Skip to content

Commit 11a7a29

Browse files
committed
fix(ci): allow CI/CD label to bypass module label requirement
Cross-cutting PRs that only touch CI/infrastructure don't belong to a specific module. Accept CI/CD as an alternative to the cuda.bindings/cuda.core/cuda.pathfinder module labels. Made-with: Cursor
1 parent 41cad4f commit 11a7a29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pr-metadata-check.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ jobs:
3838
ERRORS=""
3939
4040
# Module labels identify which package the PR touches.
41+
# Cross-cutting labels exempt PRs from needing a module label.
4142
MODULE_LABELS="cuda.bindings cuda.core cuda.pathfinder"
43+
MODULE_EXEMPT_LABELS="CI/CD"
4244
HAS_MODULE=false
4345
for label in $LABEL_NAMES; do
44-
for mod in $MODULE_LABELS; do
46+
for mod in $MODULE_LABELS $MODULE_EXEMPT_LABELS; do
4547
if [ "$label" = "$mod" ]; then
4648
HAS_MODULE=true
4749
break 2
@@ -50,7 +52,7 @@ jobs:
5052
done
5153
5254
if [ "$HAS_MODULE" = "false" ]; then
53-
ERRORS="${ERRORS}- **Missing module label**: add at least one of: \`cuda.bindings\`, \`cuda.core\`, \`cuda.pathfinder\`.\n"
55+
ERRORS="${ERRORS}- **Missing module label**: add at least one of: \`cuda.bindings\`, \`cuda.core\`, \`cuda.pathfinder\` (or a cross-cutting label such as \`CI/CD\`).\n"
5456
fi
5557
5658
# Type labels categorize the kind of change.

0 commit comments

Comments
 (0)