Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

docs: setup redirect #2051

docs: setup redirect

docs: setup redirect #2051

name: Lint commit message
on:
push:
branches:
- staging
- staging-vue3
- production
- vue3
jobs:
commit_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Lint commit message
run: |
echo "This commit should adhere to the commit message convention."
echo "correct format: <type>(<scope>): <subject>"
echo "example: feat: add modal component"
echo "Please amend your commit message (git commit --amend) if commitlint reports an error and push using: git push --force-with-lease"
npx commitlint --verbose << EOF
${{ github.event.head_commit.message }}
EOF