summaryrefslogtreecommitdiffstats
path: root/.github/workflows/gitlint.yml
blob: 294586c48e9c7aa0459ee8a0d779f8dc22c73798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
on: [pull_request]

name: Git Checks

jobs:
  commit-lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: actions/setup-python@v4
        with:
          python-version: '3.x'
      - run: pip install gitlint
      - run: gitlint --commits $(git merge-base origin/master HEAD)..HEAD