core-validate-commit
core-validate-commit copied to clipboard
Validate commit messages for Node.js core
Add a hook to call `core-validate-commit` when you check in
Ref: https://github.com/nodejs/node/issues/53795#issuecomment-2219727938 Ref: https://github.com/nodejs/node/pull/53752 CC @targos
https://github.com/nodejs/core-validate-commit/blob/006aedd1c889ebfacdf2c346efd6e6a572cbc5e0/lib/rules/subsystem.js#L43-L45
Useful to ensure the commit message doesn't include metadata that should be added by automation (PR-URL and reviewers). In particular, we could use that in the commit linter in nodejs/node...
We might as well
FORKING DEMO
The goal is to remove the need to clone the repo in https://github.com/nodejs/node/blob/main/.github/workflows/notify-on-push.yml, and instead rely on push.commits like so: ```yml - name: Validate commits run: echo "$COMMITS" | npx...
Refs: https://github.com/nodejs/node/commit/478a2e656d803970e93c