name: PR Title
# The repo merges via squash, and the squash commit takes the PR title — so
# enforcing Conventional Commits on the PR title is what keeps `main`'s history
# conventional (which release-plz then turns into versions + changelog).
on:
pull_request:
types:
permissions:
pull-requests: read
concurrency:
group: pr-title-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
title:
name: title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}