fix: org-gate merge_group EXPECTED_SKIP(v1.4.2,.github#135,ADR-0046) - #28
Conversation
…(v1.4.2,#135,ADR-0046)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughChanges组织门禁事件聚合
Suggested labels: Merge Risk: ⚪ Minimal · up to This narrowly updates merge-group gate handling so the intended ADR check skip is accepted without relaxing other skip behavior. No actionable merge-blocking risk remains; the PR is merge-ready after normal checks and review. 🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can tweak Display preferences with a live preview to see your comment before it ships |
PR Summary by QodoFix org-gate: allow org-adr-required skipped on merge_group only
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
缺陷: Cloudbird-Software/.github#135 | 依据: ADR-0046 决策 5(org-gate 变更走版本发布流程)
问题
merge_group 事件下
org-adr-required被if: github.event_name == 'pull_request'设计性 skip(C1 的 ADR 校验在 PR 事件已跑,队列分支不重跑——合理),但org-gate严格聚合器断言全部 needssuccess(ADR-0032 skipped≠success)且自称"无事件条件 job,无 EXPECTED_SKIP"——不实。结果:merge queue 仓(agent-registry/template-service)每个 PR 都被队列弹回(证据:agent-registry run 32442341702;昨日 #65 是 owner 在弹回后走 admin 通道合并掩盖了问题)。修复
聚合器在
merge_group事件下把org-adr-required的skipped列入 EXPECTED_SKIP 白名单(唯一 key + 唯一事件,其余任何 skip 仍红)。github.event_name经 env 间接引用(zizmor 惯例)。发布(ADR-0046 决策 5)
本 PR 合并后:tag
v1.4.2→ org rulesetorg-required-workflows钉点 ref 更新 → .github 仓rulesets/org-required-workflows.json+expected-state.json落盘同步(引用 ADR-0046 的 PR)。Summary by CodeRabbit