ci: trigger workflow on ready_for_review pull requests

Default pull_request types are [opened, synchronize, reopened] which excludes ready_for_review. Draft PRs (e.g. those auto-generated by Cursor Background Agent) thus skipped CI when converted to ready, requiring close+reopen workarounds. Explicit types list now ensures CI runs on draft -> ready transitions too.
This commit is contained in:
晴天
2026-05-28 07:37:47 +08:00
parent 8568dd0d2a
commit 2b2b221bbb

View File

@@ -7,6 +7,8 @@ on:
branches: [main]
pull_request:
branches: [main]
# 默认 types 不含 ready_for_review导致 draft → ready 转换不会触发 CI显式列出确保所有人为状态变化都会跑 CI
types: [opened, synchronize, reopened, ready_for_review]
# 同一分支的新提交会取消正在运行的旧工作流
concurrency: