Skip to content

Commit

Permalink
Workflow to check commit message for compliance with conventional com…
Browse files Browse the repository at this point in the history
…mits
  • Loading branch information
mih committed May 21, 2024
1 parent 4ab8b33 commit f798efe
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check conventional commits

on: pull_request

jobs:
commit-message-check:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.11
architecture: x64
- name: Checkout
uses: actions/checkout@v4
- name: Install commitizen
run: python -m pip install commitizen
- name: Run commit message checks
run: |
echo cz check --rev-range ${{ env.GITHUB_BASE_REF }}..${{ env.GITHUB_HEAD_REF }}
cz check --rev-range ${{ env.GITHUB_BASE_REF }}..${{ env.GITHUB_HEAD_REF }}

0 comments on commit f798efe

Please sign in to comment.