Repository navigation
巡检守卫失败时给出明确原因 - #9
Merged
Merged
Conversation
发布前的「受信任清单或脚本在本轮之后被改过」守卫原来是裸的 `git diff --quiet ...`,触发时只有一个 exit 1(2026-11-05 00:26 的巡检就 是这样红的,实际原因是合并 #8 改了 catalog)。改成显式判断并打印原因, 提醒重跑即可,不让人再去猜是哪一步。
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. |
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.
巡检发布前的守卫是裸命令:
它退出码非 0 时整步直接
exit 1,日志里只有一个##[error]Process completed with exit code 1。2026-11-05 00:26 的巡检就是这么红的,真实原因是合并 #8 在巡检跑完后改了monitor/catalog.json——守卫按设计拒绝了用旧证据发布,但看起来像"莫名其妙的失败"。改成显式判断并打印原因,同时提示重跑即可:
验证:
actionlint通过。行为不变(仍然拒绝发布),只是把原因说出来。