summaryrefslogtreecommitdiffstats
path: root/.github/workflows/pull_request.yml
blob: 63afe6bc401d62e5f1d170db3fc20a00619349df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
on:
  pull_request:

name: Pull Request Checks

jobs:
  block-fixup:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4.1.0
    - name: Block fixup commit merge
      uses: 13rac1/block-fixup-merge-action@v2.0.0

  commit-lint:
    runs-on: ubuntu-latest
    if: github.event_name == 'pull_request'
    steps:
      - uses: actions/checkout@v4.1.0
        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