Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f601794da
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| name: Cancel superseded PR CI | ||
|
|
||
| on: | ||
| pull_request_target: |
There was a problem hiding this comment.
Cover branches suppressed by pull_request_target
When a fork uses a SHA-like head branch name, GitHub may deliberately suppress pull_request_target runs, as documented in Events that trigger workflows. Because this is the only trigger for the cancellation job, synchronizing such a valid PR leaves its superseded ci.yml run active and queues the new run behind it; add a trusted cancellation path based on an event that is not subject to this branch-name restriction.
Useful? React with 👍 / 👎.
变更说明 / Change Description
同一个 PR 推送新提交后,取消其旧提交尚未结束的主 CI,避免旧任务继续占用作者队列。现有
ci.yml完全不变,保留按作者和 PR 编号奇偶划分的两个队列;最新提交仍按原规则排队。main的pull_request_target: synchronize。actions: write和pull-requests: read。变更类型 / Change Type
涉及前端 / Frontend Changes
不涉及前端。
验证 / Validation
ci-workflow.test.mjs33 项测试通过,作者双队列规则保持不变。actionlint 1.7.12校验新 workflow 通过;git diff --check通过。39903908234,保留最新 HEAD49331b5;取消端点替换为记录器,未取消真实任务。0f601794da通过:6 个 job 成功、18 个按变更范围跳过,完整 job/step 核对无失败;自动安全审查完成且无发现。0f601794da,当前仍在作者队列等待,尚无 job 开始;上游自动审查尚无结论。限制与回退
同一来源分支曾用于多个 PR,且运行缺少 PR 关联时,保留无法确认归属的旧 CI,避免误取消其他 PR。普通取消请求异步生效,不强制终止,也不删除运行记录。撤销新增 workflow 可停止后续自动取消;已经取消的 CI 需要手动重跑。
GitHub 可能出于安全原因不对类似 SHA 的分支名触发
pull_request_target;这些分支不在此单触发器方案的覆盖范围。已核对 自动审查意见 和 官方限制:保留约定的最小单触发器方案,不增加替代触发路径。关联 Issue / Related Issue
未关联独立 Issue。