Skip to content

tools: add script to lint commit messages

Currently the "first PR commit message" linting is only done on Travis. This PR attempts to decouple the logic from Travis and capture the logic in a bash shell script so that it can be run locally.

I haven't (yet) added the scripts to Makefile or vcbuild.bat as the script requires git, node, npm and npx being in $PATH.

Refs: https://github.com/nodejs/node/pull/22452

Checklist

Merge request reports

Loading