name: Commit Lint
on:
push:
branches:
pull_request:
branches:
permissions:
contents: read
pull-requests: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Commit Lint
uses: wagoid/commitlint-github-action@v5
with:
configFile: .commitlintrc.json
token: ${{ secrets.GITHUB_TOKEN }}