Skip to content

fix: migrate PR title check to pull_request trigger - #153

Merged
Qi Zhang (Zhangqi910) merged 1 commit into
mainfrom
fix/migrate-pr-title-check-trigger
Nov 26, 2026
Merged

Qi Zhang (Zhangqi910) merged 1 commit into
mainfrom
fix/migrate-pr-title-check-trigger

Conversation

@Zhangqi910

@Zhangqi910 Qi Zhang (Zhangqi910) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR updates the semantic PR title check workflow to use the safer pull_request trigger instead of pull_request_target. Reference: https://github.com/amannn/action-semantic-pull-request/blob/main/README.md

Changes

  • Replace pull_request_target with pull_request.
  • Restrict GITHUB_TOKEN permissions to pull-requests: read.
  • Preserve the existing PR title validation behavior.

Validation

  • Valid PR titles pass validation.
  • Invalid PR titles fail validation.
  • PR title updates trigger re-validation.
  • Fork PRs are validated successfully.

@Zhangqi910 Qi Zhang (Zhangqi910) changed the title fix: migrate PR title check to pull_request trigger Update workflow Nov 25, 2026
@Zhangqi910 Qi Zhang (Zhangqi910) changed the title Update workflow fix: migrate PR title check to pull_request trigger Nov 25, 2026
@Zhangqi910
Qi Zhang (Zhangqi910) merged commit 0a3cc0d into main Nov 26, 2026
22 of 24 checks passed
@Zhangqi910
Qi Zhang (Zhangqi910) deleted the fix/migrate-pr-title-check-trigger branch November 26, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants