chore: add pr title for semantic versioning #1
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
name: "Lint Commit Messages" | |
on: | |
pull_request: | |
types: [opened, reopened, ready_for_review, synchronize, edited] | |
branches: | |
- dev | |
- main | |
jobs: | |
commit-lint: | |
name: Validate Commit Messages | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v5.1.1 | |
with: | |
python-version: 3.11 | |
- name: Create uv virtualenv | |
run: | | |
python -m pip install uv | |
uv venv .venv | |
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV | |
echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
- name: Install dependencies | |
run: uv pip install commitizen | |
- name: Check commit messages | |
run: | | |
cz check --rev-range ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} |