Commit Graph
10 Commits
Author SHA1 Message Date
cshandClaude Fable 5 7408c532f0 🐛 fix(commit-message): enforce one rule owner across skill and CI
CI ran .gitea/ci/commit_message_lint.py, an independent reimplementation
that parsed the type/emoji mapping out of docs/common/commit_message.md.
Its scope pattern accepted fix(-a), fix(a-), fix(a--b) and fix(_), and it
had no subject length check, so the gate that actually blocks merges
enforced weaker rules than the Validation this skill reports.

The CI entry is now a wrapper that locates the skill validator and
delegates to it with no arguments; commit_policy.json becomes the only
rule source and explanatory docs stop being a machine policy input.

The validator also learns the workflow_run event, whose payload carries
neither a PR title nor a before/after range. An upstream pull_request now
validates <integration-branch>..head_sha instead of HEAD alone, taking
the branch name from COMMIT_LINT_MAIN_BRANCH, and degrades to the
upstream head commit with a WARN rather than guessing a base.

Alongside: --help now documents the no-argument CI mode it had always
supported silently, CI wiring detail moves to references/ci-wiring.md,
and the description gains negative boundaries.

test/test_commit_message_policy.py asserts policy/spec-table equality and
uses ast to assert the CI entry imports no regex and reads no file, so a
second implementation cannot reappear unnoticed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 15:21:37 +08:00
csh 0a42350e22 ♻️ refactor(commit-message): separate CI input validation 2026-08-13 12:05:01 +08:00
csh 7ca6a69130 🐛 fix(commit-message): reject unsafe drafting shortcuts 2026-08-13 12:04:58 +08:00
csh bcbc53b7ce 🐛 fix(commit-message): separate commit and staging authorization 2026-08-13 12:04:58 +08:00
csh 3f0beae26b test(skills): add Darwin optimization prompts 2026-08-13 12:04:57 +08:00
csh 38ea8caaeb feat(commit-message): bundle policy and validator 2026-07-22 17:26:20 +08:00
csh 034b562e70 🐛 fix(commit-message): resolve policy and staged boundaries 2026-07-20 09:08:37 +08:00
csh 8efc4dde65 🐛 fix(skills): quote commit-message description 2026-05-19 12:53:44 +08:00
csh e0b1c3ab1b ♻️ refactor(skills): standardize first-party skill contracts
upgrade commit-message, style-cleanup, and bulk-refactor-workflow
to use trigger-focused frontmatter and a shared contract structure.

add a first-party skill quality test gate and register it in tests
documentation.
2026-05-19 09:38:32 +08:00
csh 2c5050de09 ♻️ refactor(skills): rename repo skills source dir
move the repository skills source from `codex/skills` to `skills`.

update vendor/install_skills paths, thirdparty sync pipeline, docs, and regression tests, including deployment-route e2e coverage.
2026-05-19 09:09:54 +08:00