Zum Inhalt springen
Kitbay
Einreichen

go-codemod

MITAktualisiert am 11. Nov. 20265.616GitHub-Sterne

A maintainer guide for writing codemods for the gh aw fix command, which rewrites workflow files to newer syntax.

Was der Skill vermittelt

A maintainer guide for writing codemods for the gh aw fix command, which rewrites workflow files to newer syntax. It has the agent first read how the fix command loads and applies codemods in order, then add a new codemod file, register it, reuse the shared constructors and the workflow document tree, and write tests that cover both changed and unchanged input. It names the gh-aw source files involved.

Funktionen

  • Add a codemod to the gh aw fix command
  • Register codemods in the right order
  • Test codemods on changed and no-op input