Skip to content

Commit 5293f2e

Browse files
f0reachARRclaude
andcommitted
ci: lint PR titles on pull_request instead of pull_request_target
pull_request_target runs with a writable token in the base-branch context; this check only needs to read the PR title, so the safer trigger is enough. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 7f1bca2 commit 5293f2e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/pr-title.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ name: PR title
44
# squash merges the PR title becomes that commit message, so it has to follow
55
# Conventional Commits.
66
on:
7-
pull_request_target:
8-
types: [opened, reopened, edited]
7+
# `synchronize` is here so the check re-reports on every push, which matters
8+
# if this is made a required check.
9+
pull_request:
10+
types: [opened, reopened, edited, synchronize]
911

1012
permissions:
1113
pull-requests: read

0 commit comments

Comments
 (0)