Watch
1
0
Fork
You've already forked git-lad
0
forked from datalad/git-lad
git-lad/.forgejo/workflows/conventional-commits.yml
2026-01-13 20:48:03 +01:00

18 lines
606 B
YAML

name: Conventional commits
on: pull_request
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 commitizen
run: uv tool install commitizen
- name: Run commit message checks
run: |
set -x; cz check --rev-range ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}