Skip to content

chore(deps): bump github/codeql-action/autobuild from 4.37.7 to 4.37.8 #19

chore(deps): bump github/codeql-action/autobuild from 4.37.7 to 4.37.8

chore(deps): bump github/codeql-action/autobuild from 4.37.7 to 4.37.8 #19

Workflow file for this run

name: PR Title
on:
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
permissions:
pull-requests: read
jobs:
conventional-pr-title:
name: Lint PR Title
if: ${{ github.event.pull_request.base.ref == 'main' }}
runs-on: ubuntu-latest
steps:
- name: Validate conventional PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
# Reject agent/status prefixes that squash-merge into main history.
if [[ "$PR_TITLE" =~ ^\[ ]]; then
echo "PR titles must not start with bracketed agent/status prefixes like [codex], [claude], [copilot], or [wip]."
echo "Use a Conventional Commit title and put agent/status context in the PR body."
exit 1
fi
pattern='^(feat|fix|docs|chore|refactor|test|perf|build|ci|revert)(\([[:alnum:]_.-]+\))?!?: .+'
if [[ "$PR_TITLE" =~ $pattern ]]; then
echo "PR title is valid: $PR_TITLE"
exit 0
fi
echo "PR title must use Conventional Commits because squash merges become the commit title on main."
echo "Allowed prefixes: feat, fix, docs, chore, refactor, test, perf, build, ci, revert"
echo "Examples:"
echo " fix: harden campaign send idempotency"
echo " feat(automations): add draft preview"
exit 1