Skip to content

build: add commit message linting to workflow

Run linting on the commit message of the first commit in a pull request as part of our GitHub actions CI workflow. If linting fails the pull request will be labelled as requiring a fix to the commit message. The check itself will always pass so as to not concern first time contributors.

This is a different approach to the commit message linting that is currently run on Travis CI. The new label introduced by this pull request (needs commit message fix) could also be added manually for cases where the commit message needs updating before landing for things not caught by core-validate-commit (e.g. typos). We can also teach node-core-utils to check for the label when landing pull requests (for those things not caught by core-validate-commit).

Checklist

Merge request reports

Loading