summaryrefslogtreecommitdiffstats
path: root/.github/workflows/gitlint.yml
blob: 051d9b34b38dd8de7685ec747aa4251ca57f8e43 (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@v4.1.1
        with:
          fetch-depth: 0
      - uses: actions/setup-python@v5
        with:
          python-version: '3.x'
      - run: pip install gitlint
      - run: gitlint --commits $(git merge-base origin/master HEAD)..HEAD