Skip to content

Semantic PR Title

Semantic PR Title #505

name: Semantic PR Title
on:
pull_request:
types: [opened, edited, synchronize, reopened]
merge_group:
types: [checks_requested]
permissions:
pull-requests: read
jobs:
semantic-pr-title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v6
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
refactor
test
ci
build
chore
perf
revert
requireScope: false
subjectPattern: ^(?!\[).+
subjectPatternError: |
PR titles must not start with bracketed agent/status prefixes like [codex], [claude], [copilot], or [wip].
Use a Conventional Commit title such as "feat(api): add memory-by-tag pagination" and put agent/status context in the PR body.
- name: Pass merge queue title check
if: github.event_name == 'merge_group'
run: echo "PR title validation already ran before merge queue entry."