You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while parsing .github/labeler.yml. This blocks the triage check on affected PRs (for example #2409).
Root cause
#2410 bumped actions/labeler from v6 to v7. labeler v7 depends on js-yaml^5.1.0, which is stricter about indentation of multi-line flow sequences than the version v6 used. The current .github/labeler.yml writes each label's globs as a multi-line flow sequence:
js-yaml 5.x rejects the closing-bracket indentation here. This is reproducible locally: js-yaml 5.2.1 (the version labeler v7 resolves) throws the exact deficient indentation (27:7) on the current file, while js-yaml 4.3.0 parses it without complaint.
The Pull Request Labeler / triage check fails in a few seconds.
Expected behavior
The triage check passes and labels are applied.
Additional context
Fix: write the glob lists as block sequences (the style actions/labeler documents for v5+), which parses cleanly under js-yaml 5.x. This is the same class of change as #1842, which adapted the config for the v4 to v6 bump.
Describe the bug
The Pull Request Labeler workflow (the
triagecheck) fails on PRs whose run happens after #2410 was merged, with:while parsing
.github/labeler.yml. This blocks thetriagecheck on affected PRs (for example #2409).Root cause
#2410 bumped
actions/labelerfrom v6 to v7. labeler v7 depends onjs-yaml^5.1.0, which is stricter about indentation of multi-line flow sequences than the version v6 used. The current.github/labeler.ymlwrites each label's globs as a multi-line flow sequence:js-yaml 5.x rejects the closing-bracket indentation here. This is reproducible locally:
js-yaml5.2.1 (the version labeler v7 resolves) throws the exactdeficient indentation (27:7)on the current file, whilejs-yaml4.3.0 parses it without complaint.To Reproduce
Pull Request Labeler / triagecheck fails in a few seconds.Expected behavior
The
triagecheck passes and labels are applied.Additional context
Fix: write the glob lists as block sequences (the style
actions/labelerdocuments for v5+), which parses cleanly under js-yaml 5.x. This is the same class of change as #1842, which adapted the config for the v4 to v6 bump.