Skip to content

chore(deps): bump actions/setup-python from 4 to 5 #29

chore(deps): bump actions/setup-python from 4 to 5

chore(deps): bump actions/setup-python from 4 to 5 #29

name: Validate PR commit messages
on:
pull_request:
branches: ["main"]
jobs:
commitlint:
name: Validate commit messages
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install commitlint
run: |
npm install commitlint @commitlint/config-conventional @commitlint/cli
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose