Repository navigation
ci: 修正 first-interaction 的输入参数名(main 上的 workflow 才是 pull_request_target 实际执行的) - #819
Merged
Merged
Conversation
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.
为什么直接对
main提这个 PRpull_request_target事件执行的是**默认分支(main)**上的 workflow 文件,与 PR 自身分支、PR 目标分支都无关。所以:dev上早在f297f1c就修好了(输入名改成repo_token/issue_message/pr_message);main上仍是旧版(repo-token/issue-message/pr-message),而 action 固定为v3.1.0(只认下划线)。结果是每个 PR 都挂一个 2 秒的
welcome失败,例如 #818 的日志:#817 的目标分支是已修复的
dev,welcome仍然失败,正好证明读的是main。按 AGENTS.md §3,
main只应接收来自dev的 release merge;本次是有意破例,因为把这个修复留在dev上永远不会生效,而等 4.7.0 发版期间每个外部 PR 都会继续显示红叉。remind机器人会在本 PR 上提示目标分支不对,属预期,无需处理。改动
.github/workflows/first-interaction.yml:取dev上已修复的版本(逐字节一致),同时带上 zizmor 的dangerous-triggers说明注释。dev完全相同,下次 dev→main 发版合并不会在这个文件上产生冲突,也不会造成分支漂移。验证
welcome仍会失败——它运行时读的还是旧版main,属于预期。welcome应变为绿色(首次贡献者场景才会真正发评论)。CI/CodeQL矩阵无需重跑即可判断。