Skip to content

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

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

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) merged commit 3a287a1 into main Nov 26, 2026
9 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

Needs: Triage 🔍 Needs triaging by the team

Projects

Development

Successfully merging this pull request may close these issues.

2 participants