governance: merge-queue ruleset——agent-registry/template-service 先行(P2-7,ADR-0042) - #117
Conversation
…2-7,ADR-0042) - merge_method squash(与 BP-4 squash-only 一致) - 保守串行起步:min_entries_to_merge=1,check 超时 1h - 观察一周后全量扩围须修订 ADR-0042 范围清单
|
Warning Review limit reached
Next review available in: 14 minutes Limit details: You’ve used all 10 included reviews currently available. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Comment |
PR Summary by QodoEnable merge queues for agent-registry and template-service
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Invalid merge queue payload
|
| "check_response_timeout_seconds": 3600, | ||
| "max_entries_to_build": 5, | ||
| "merge_method": "squash", | ||
| "min_entries_to_merge": 1 |
There was a problem hiding this comment.
1. Invalid merge queue payload 🐞 Bug ≡ Correctness
The merge queue uses an unsupported timeout field and lowercase merge method while omitting three required parameters, so apply.sh will receive an API validation failure instead of creating the ruleset. This prevents merge-queue enablement for both targeted repositories.
Agent Prompt
## Issue description
The merge-queue parameters do not match GitHub's organization ruleset API schema. Replace `check_response_timeout_seconds` with `check_response_timeout_minutes` (using `60` for the intended one-hour timeout), use the uppercase `SQUASH` enum, and provide required `grouping_strategy`, `max_entries_to_merge`, and `min_entries_to_merge_wait_minutes` values; use `max_entries_to_merge: 1` to preserve the stated serial grouping policy.
## Issue Context
`governance/apply.sh` submits each ruleset JSON directly to GitHub without transforming its parameters, so the checked-in file must already match the REST API request schema.
## Fix Focus Areas
- governance/rulesets/merge-queue.json[30-35]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
摘要
自动合并计划 P2-7(#92,ADR-0042 已合入 agent-registry#59)。多 agent 并发"各自对 main 绿、合起来红"由队列串行化解决。
变更
新 ruleset
merge-queue:目标 ~DEFAULT_BRANCH,范围 agent-registry + template-service(高活跃仓先行,观察一周后全量须修订 ADR-0042);merge_method=squash;保守串行起步(min_entries_to_merge=1,check 超时 1h,max_entries_to_build=5)。配套(并行 PR)
merge_group触发(队列 required check 上报的前提)merge_group+ EXPECTED_SKIP merge_group 分支(ADR-0032 登记义务)验证