[AURON #2413] fix(ci): adapt labeler.yml to actions/labeler v7#2414
Conversation
actions/labeler was bumped to v7 in apache#2410, which depends on js-yaml ^5.1.0. js-yaml 5.x is stricter about multi-line flow-sequence indentation and rejects the current .github/labeler.yml with 'deficient indentation (27:7)', so the triage check fails on PRs that run after the bump. Rewrite the 17 glob lists from flow sequences to block sequences. Label names and glob patterns are unchanged; verified with js-yaml 5.2.1 that the updated file parses into the same 17 labels and 36 patterns.
There was a problem hiding this comment.
Pull request overview
Fixes the GitHub Actions PR labeler (triage) failure after upgrading actions/labeler to v7 by updating .github/labeler.yml to a js-yaml 5.x-compatible YAML style (block sequences instead of multi-line flow sequences), without changing any label names or glob patterns.
Changes:
- Converted all
any-glob-to-any-fileglob lists from flow-style ([ ... ]) to block-style (- ...) sequences across all label entries. - Kept the existing 17 labels and their 36 glob patterns unchanged while making the YAML parseable under
js-yaml5.x.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
The failing The labeler workflow runs on Once this merges, master carries the block-style config and the next triage run on open PRs parses cleanly. Verified locally with js-yaml 5.2.1 (the version labeler v7 resolves): the current file throws |
|
@weiqingy Thanks for fixing this issue. |
Which issue does this PR close?
Closes #2413.
Rationale for this change
#2410 bumped
actions/labelerfrom v6 to v7, which broughtjs-yaml^5.1.0. js-yaml 5.x enforces stricter indentation on multi-line flow sequences and rejects the current.github/labeler.ymlwithYAMLException: deficient indentation (27:7), so thetriagecheck now fails on PRs that run after that bump.What changes are included in this PR?
Rewrite the glob lists in
.github/labeler.ymlfrom multi-line flow sequences ([ ... ]) to block sequences, for all 17 label entries. The label names and glob patterns are unchanged; only the YAML list style changes.Verified with
js-yaml5.2.1 (the version labeler v7 resolves): the current file throwsdeficient indentation (27:7), and the updated file parses cleanly into the same 17 labels and 36 glob patterns.Are there any user-facing changes?
No. This is a CI configuration fix.
How was this patch tested?
Loaded both the old and new
.github/labeler.ymlwithjs-yaml5.2.1. The old file reproduces the CI error; the new file parses without error and yields identical label-to-glob mappings.Note
The
triagecheck on this PR is expected to fail until this is merged. The labeler workflow runs onpull_request_targetand reads.github/labeler.ymlfrom the base branch (master), not from the PR, so it still sees the current file until the fix lands on master.