Skip to content

Enforce conventional commits #60

Enforce conventional commits

Enforce conventional commits #60

name: Enforce conventional commits
on:
pull_request_review:
types: [submitted]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install commitizen
- name: Validate pull request title and commit messages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "${{ github.event.pull_request.title }}" | cz check