← Commit list

00c7baea51

Dan Fandrich
Dan Fandrich
2026-08-29
SUCCESS Duration: 422s

Subject

CI: add a test of labeler patterns

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

.github/labeler.yml+4 -1
@@ -19,6 +19,10 @@
# patterns, they must be joined with commas to a single string surrounded by
# braces. For example: '{lib/**,src/**}'.
#
+# Note that the labelercheck.sh script is sensitive to the specific formatting
+# of this file; strictly follow the established template when adding new
+# patterns.
+#
# See https://github.com/actions/labeler/ for documentation on this file.
---
@@ -208,7 +212,6 @@ documentation:
.github/scripts/verify-synopsis.pl,\
**/*.md,\
**/*.txt,\
- **/*.1,\
CHANGES.md,\
docs/**,\
LICENSES/**,\
.github/scripts/labelercheck.sh+12 -0
@@ -0,0 +1,12 @@
+#!/bin/bash
+# Copyright (C) 2026 Dan Fandrich
+#
+# SPDX-License-Identifier: curl
+
+# Look for invalid patterns in labeler config.
+# This is highly sensitive to the format of the labeler.yml file.
+# It will also fail if patterns are added containing special shell characters
+# like "$" or "|".
+grep -E '^ {14}[^-].*\\$' .github/labeler.yml | \
+ sed -E -e '/^[[:space:]]*#/d' -e 's/,?\\$//' | \
+ xargs -I{} /bin/bash -c 'shopt -s globstar dotglob; ls -d {}' >/dev/null
.github/workflows/checksrc.yml+3 -0
@@ -74,6 +74,9 @@ jobs:
- name: 'cmake options in documentation'
run: scripts/cmakeopts.sh
+ - name: 'labelercheck'
+ run: .github/scripts/labelercheck.sh
+
- name: 'perlcheck'
run: scripts/perlcheck.sh