name: Lint Commit Messages
on:
  pull_request:
    types: [ opened, reopened, synchronize ]

jobs:
  commitlint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: wagoid/commitlint-github-action@v5
        with:
          failOnWarnings: true
