# Enforces Conventional Commits on PR titles. Squash-merge uses the PR
# title as the merge commit message, and release-plz.toml's
# `release_commits` regex only matches feat:/fix:/perf: prefixes — an
# unprefixed PR title silently produces a merge commit release-plz will
# never propose a release for (see PR #13, where the squash title "Fix/list
# users wrong url and method" blocked a release until the merge commit was
# amended by hand).
name: PR Title Lint
on:
pull_request_target:
types:
permissions:
jobs:
lint:
name: Validate PR title follows Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
perf
docs
style
refactor
test
chore
ci