ci(MOC-64): no-ai-coauthor 去掉 branches:[main] 过滤(修 stacked-PR retarget 漏跑)#308
Merged
Conversation
…t 漏跑 stacked PR(base=feature 分支)在底 PR 合并后自动 retarget 到 main 时,no-ai-coauthor 因 `branches:[main]` 过滤 + retarget 非触发事件类型而漏跑 → 该 required check 缺失 → PR BLOCKED,只能手动 close+reopen 补跑(合 MOC-62 #307 时亲历)。去掉 base 过滤、对所有 PR 跑(跟 ci.yml 一致);job 内按 PR_BASE_SHA..PR_HEAD_SHA 扫 commit,任意 base 都正确。 Refs MOC-64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs MOC-64。
合 MOC-62(#307)时亲历:
no-ai-coauthor.yml用on: pull_request: branches: [main],只对 base=main 的 PR 跑。stacked PR(base=feature 分支)在底 PR 合并 + 删分支后自动 retarget 到 main 时:① retarget 瞬间 base 未稳定到 main → 被branches:[main]过滤掉;② base retarget 本身不是触发事件类型。结果该 required check 缺失 → PR BLOCKED,只能手动 close+reopen 补跑。改动(1 处):去掉 pull_request 的
branches: [main]过滤,对所有 PR 跑(跟ci.yml一致 —— 它本就没 base 过滤)。保留push: branches:[main]+workflow_dispatch。job 内按PR_BASE_SHA..PR_HEAD_SHA扫 commit,对任意 base 都正确,去掉 base 过滤无副作用。本 PR 自身(base=main)即验证:no-ai-coauthor 对 base=main 仍正常跑。不自动 merge,等你确认。
🤖 Generated with Claude Code