forked from orinoco/query-things
Check from when we can enforce it -- paying for sins of the past... Use the same implementation for CI too.
20 lines
520 B
YAML
20 lines
520 B
YAML
name: Conventional commits
|
|
on:
|
|
pull_request:
|
|
push:
|
|
jobs:
|
|
check-messages:
|
|
runs-on: debian-latest
|
|
steps:
|
|
- name: Checkout project
|
|
uses: actions/checkout@v4
|
|
with:
|
|
# we need all the history to be able to resolve revision ranges properly
|
|
fetch-depth: 0
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v6
|
|
- name: Install hatch
|
|
run: uv tool install hatch
|
|
- name: Run commit message checks
|
|
run: |
|
|
hatch run cz:check-commits
|