Migrate generate-automation.js to js-yaml 5
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
❌ 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.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1
- Forks
- 7
- Ø Merge
- 2 T. 8 Std.
- Gemergte PRs (30 T.)
- 10
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus learningequality/.github
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
learningequality/.github#112 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
learningequality/.github#130 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
learningequality/.github#129 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 24/100
learningequality/.github#128 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 58/100
learningequality/.github#127 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in learningequality/.github
Ähnliche Issues
-
Add: &TV LogoOffencheck:passed logos:add
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 74/100
-
BUG: Appointment time renders blank and PM appointment slots miscalculate vertical position in CalendarScreenEvtl. vergeben @aryanpatil-07 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
AOSSIE-Org/BabyNest#297 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Onboarding form: instructor radio never pre-selected "Yes" (permission vs permissions typo)Evtl. vergeben @ThakuraAnki hat das heute übernommen. Offenbug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
WikiEducationFoundation/WikiEduDashboard#7235 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
-
Component: Frontend Component: Web Component Type: Maintenance
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
it-at-m/refarch-templates#1944 ·
Maintainer antworten meist innerhalb von 2 Tagen