Skip to content

Commit c81c65a

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
workflows: add a job to check commit messages
Signed-off-by: John Mulligan <[email protected]>
1 parent 7468de5 commit c81c65a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ on:
1010
- cron: 1 1 * * *
1111

1212
jobs:
13+
check-commits:
14+
runs-on: ubuntu-latest
15+
if: github.event_name == 'pull_request'
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
ref: ${{ github.event.pull_request.head.sha }}
21+
- uses: actions/setup-python@v4
22+
- name: Install tox
23+
run: python -m pip install tox
24+
- name: Run gitlint
25+
run: tox -e gitlint
1326
test:
1427
runs-on: ubuntu-latest
1528
steps:

0 commit comments

Comments
 (0)