Skip to content

Commit 94bf466

Browse files
committed
Merge branch 'main' into pathfinder_mathdx_h
2 parents dd44cff + 079f937 commit 94bf466

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 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.
@@ -89,7 +91,7 @@ jobs:
8991
{
9092
echo "## PR Metadata Check Failed"
9193
echo ""
92-
printf "$ERRORS"
94+
printf '%b' "$ERRORS"
9395
echo ""
9496
echo "Please update the PR at: $PR_URL"
9597
} >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)