.github/workflows/check-pr-title.yaml
name: Check PR title
on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: aslafy-z/conventional-pr-title-action@v2.2.3
with:
success-state: Title follows the Conventional Commits.
failure-state: Title does not follow the Conventional Commits.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}