chore: util linting #239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
name: Commit Message | |
# NOTE: Skip check on PR so as not to confuse contributors | |
# NOTE: Also install a PR title checker so we don't mess up merges | |
jobs: | |
commit-msg: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[dev] | |
- name: Check commit history | |
run: cz check --rev-range $(git rev-list --all --reverse | head -1)..HEAD |