ci: Add commitlint to the github workflows
Ensure that we are using conventional-commit messages.
ADD
.github/workflows/commitlint.yml
+name: Lint Commit Messages
+on: [pull_request, push]
+
+jobs:
+ commitlint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ - uses: wagoid/commitlint-github-action@v5

ADD
commitlint.config.js
+module.exports = {
+ extends: ['@commitlint/config-conventional'],
+ rules: {
+ 'subject-case': [0],
+ // These are the standard values, but are listed here for easier reference
+ 'type-enum': [
+ 2,
+ 'always',
+ [
+ 'build',
+ 'chore',
+ 'ci',
+ 'docs',
+ 'feat',
+ 'fix',
+ 'perf',
+ 'refactor',
+ 'revert',
+ 'style',
+ 'test'
+ ]
+ ]
+ }
+};

ci: Add commitlint to the github workflows

Ensure that we are using conventional-commit messages.