-
[OPIK-6656] [INFRA] feat: run helm-docs locally via .hooks/pre-commit (#6840)
发布于
2026-05-25 11:14:58 +00:00 When deployment/helm_chart/**/{values.yaml,Chart.yaml,README.md.gotmpl}
is staged, invokepre-commit run helm-docs --files <staged>and
auto-stage the regenerated chart README into the same commit. Pinned
docker image/version stay sourced from .pre-commit-config.yaml, so
there is no drift between local and CI. Graceful when pre-commit or
docker is missing — warn and skip; CI'spre-commit run helm-docs --all-filesremains the safety net.Surfaced by OPIK-6652 / PR #6830, where chart values.yaml was modified
without regenerating README.md and the CI update-readme job failed.Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com
下载附件