fix(pr-pipeline): read auto-merge state back when a resent arm or disarm errors
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github, github-actions, javascript
调研方向
从 .github/scripts/pr-merge/enable-auto-merge.mjs 开始,追踪重新启用和停用时如何处理错误。找到相关测试并运行;补充覆盖重试出错后 autoMergeRequest 状态匹配和不匹配的测试。完成标准是:目标状态匹配时记录成功,而不匹配时仍然失败,并指出 pull request 和原因。
由索引模型根据 Issue 内容生成。
描述
Problem
.github/scripts/pr-merge/enable-auto-merge.mjs resends an arm or disarm mutation after a transient network error. If the first attempt reached GitHub but its answer was lost, the resend can return an error even though the pull request already holds the target state. GitHub does not document how enablePullRequestAutoMerge answers on an already-armed pull request (https://docs.github.com/en/graphql/reference/pulls). The step then exits 1 on a correct outcome. A red pr-merge run counts toward the two-failure revert rule and the gate-repeat alert, so it is false evidence.
Fix
When a resent arm or disarm returns an error, read the pull request's autoMergeRequest once. Count it a success when the state already matches the target: armed at the same head for an arm, unarmed for a disarm.
Done when
- A resend that errors after a lost first answer, with the pull request already in the target state, logs a success and does not fail the step.
- A resend that errors while the state does not match still fails, naming the pull request and the cause.
- Tests cover both cases.
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 2 小时 45 分钟
- 30 天内合并 PR
- 940
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
admission-deferred priority: medium status: ready work-class: scoped
难度 2/5 1-3 小时 新手友好度 68/100
melodic-software/claude-code-plugins#10128 · 1 条评论 ·
维护者通常 1 天内回复
-
pr-pipeline: clear a feedback-not-landed escalation once the head moves and no lane thread is open未关闭priority: medium status: needs-decision work-class: scoped
难度 2/5 1-3 小时 新手友好度 83/100
melodic-software/claude-code-plugins#10074 · 4 条评论 ·
维护者通常 1 天内回复
-
agent-ready priority: medium status: ready work-class: scoped
难度 2/5 1-3 小时 新手友好度 85/100
melodic-software/claude-code-plugins#9914 · 1 条评论 ·
维护者通常 1 天内回复
-
fix(harness-ops): bound the OTEL hot tier's total size, not only each file可能已有人在做 @melodic-automation-lanes 今天认领。 未关闭agent-ready priority: medium status: ready work-class: scoped
难度 2/5 1-2 天 新手友好度 78/100
melodic-software/claude-code-plugins#9865 · 3 条评论 ·
维护者通常 1 天内回复
-
priority: medium status: needs-decision work-class: scoped
难度 2/5 1-3 小时 新手友好度 68/100
melodic-software/claude-code-plugins#9855 · 5 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
awsdocs/amazon-eks-user-guide#1257 ·
-
deep-dive-feedback
难度 2/5 1-3 小时 新手友好度 78/100
aws-samples/sample-apex-skills#292 ·
维护者通常 1 天内回复
-
fm-spawn: bash 5.2 patsub_replacement turns '&' in a home or project path into the placeholder text未关闭
难度 2/5 1-3 小时 新手友好度 77/100
kunchenguid/firstmate#7786 ·
维护者通常 1 天内回复
-
TLS guide repeats certs/ in the certificate directory可能已有人在做 @maheshrijal 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
prometheus/docs#3156 ·
维护者通常 2 天内回复
-
triaged
难度 2/5 1-3 小时 新手友好度 83/100
fullsend-ai/agents#1786 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复