Documentation
¶
Overview ¶
Command gen-action-yml generates the project's action.yml from the embedded plugin / template metadata.yml files + core input definitions. The generated action.yml is the GitHub Action interface definition; metadata.yml is the runtime input definition. Both must stay in sync so callers (action.yml `with:`) and the runtime (INPUT_<UPPER> env) see the same input shape.
Run via `make gen-action-yml`. The lefthook pre-commit hook gates drift (`git diff --quiet action.yml` after re-running the command).
The generator walks `assets/plugins/<slug>/metadata.yml` for the adopted plugin set (constitution 原則 III). `core` contributes the shared inputs (token / user / repo / committer_* / filename / output / etc.) without any `plugin_<slug>` gate. `base` contributes its section selector and repository-fetching inputs without any `plugin_base` gate.