Repository navigation
Migrate generate-automation.js to js-yaml 5 #122
Description
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Dependabot PR #118 bumps the js-yaml devDependency from 4.1.0 to 5.5.0 and was closed unmerged: under 5.x, scripts/generate-automation.js emits different YAML, so the generate-automation prek hook (node scripts/generate-automation.js --check) fails on all five generated files. The generator needs to produce the current output under js-yaml 5 before the bump can land.
Complexity: Low
Target branch: main
Context
- js-yaml 5.4.0 reworked scalar style selection and rewrote
sortKeys. DUMP_OPTSsetsquotingType: '"'; under 5.5.0 strings come out single-quoted anyway.- The top-level
onkey now dumps as'on':;unquoteOnKeyonly matches"on":, so the key stays quoted and the# zizmor: ignore[dangerous-triggers]suffix is dropped fromautomation-caller.yml. - The bump also adds
argparse@^3.0.3as a transitive dependency; no other package must move with it.
The Change
js-yamlshould be upgraded to 5.5.0 or later inpackage.jsonandyarn.lock.- The generator should select double-quoted strings through the js-yaml 5 scalar style options (5.4.0 added
scalarStyleRules). unquoteOnKeyshould match theonkey as js-yaml 5 emits it.
How to Get There
Install the dependency branch from #118 (dependabot/npm_and_yarn/js-yaml-5.5.0), then run node scripts/generate-automation.js --check.
Acceptance Criteria
-
package.jsonandyarn.lockpinjs-yamlat 5.5.0 or later. -
node scripts/generate-automation.js --checkpasses, and the prek CI job is green. -
automation.yml,automation-caller.yml,automation-group-issues.yml,automation-group-pull-request-target.ymlandautomation-template.ymlkeep double-quoted strings and a bareon:key. -
automation-caller.ymlkeepson: # zizmor: ignore[dangerous-triggers]. - Any remaining diff in the generated files is committed alongside the generator change.
References
AI usage
rtibblesbot (Claude Code) reviewed #118, recommended closing it, and drafted this issue from that review.
Filed from #118's review.

Activity
rtibblesbot commentedon Oct 26, 2026
Plan: Bump
js-yamlto 5.5.0 whilenode scripts/generate-automation.js --checkstill passes against the committed files.Assumptions — the issue did not settle these; say so if one is wrong.
quoteStyle: 'double'meets "select double-quoted strings through the js-yaml 5 scalar style options"; if a customscalarStyleRulesis required, the generator gains a rule array with the same output.--checkprek hook guards quote style; if a maintainer wants one, add a raw-text assertion onbuildReusableWorkflowsoutput.Written by rtibblesbot, an LLM-based coding agent.