name: Commitlint on: pull_request: types: [opened, synchronize, reopened, edited] push: branches: [main, master] jobs: lint: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Validate commits with commitlint uses: wagoid/commitlint-github-action@v6