Skip to content

Commit d6ebc63

Browse files
committed
docs(pm): rest-channel.md rows 1-2 name the ccr REST routes for the draft flip and auto-merge
The session proxy refuses POST /graphql outright and its refusal names first-party REST routes on the seat's own credential, so the draft -> ready flip and auto-merge / enqueue are no longer GraphQL-only: both were driven with read-back on 2026-09-12 by two seats. The two rows leave the "not migratable" bucket for the write-side list, keeping MCP as the alternative rather than the only channel, keeping the read-back criteria, and recording the one cost that comes with the new channel -- the timeline actor differs by channel. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCLBsUgfykL74aU716rzVK
1 parent c1078a5 commit d6ebc63

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎.claude/skills/pm-dispatch/references/rest-channel.md‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@
4545
- 它是零文件写的合 main 手段,产出真合并提交、不重写历史。
4646
- `expected_head_sha` 必须是完整 40 字符 SHA,短 SHA 回 422。
4747
- base 未动回 422 no new commits on the base branch = 无事可做,不是失败。
48+
- ✓ draft 转 ready `POST .../pulls/{n}/ccr/ready_for_review`,反向 `.../ccr/convert_to_draft`。
49+
- ⛔ 裸 `PATCH /pulls/{n}` 带 `{"draft": false}` 回 200 且什么都没改(2026-09-11 实调),读回仍 draft。
50+
- ⇒ 状态码不作数,读回才作数:`GET /pulls/{n}` 的 `draft: false`、timeline 的 `ready_for_review`。
51+
- ✓ auto-merge 挂载 `PUT .../pulls/{n}/ccr/auto_merge` 带 `{"merge_method":"SQUASH"}`,`DELETE` 卸载。
52+
- 入队读 timeline `added_to_merge_queue`,落地读 `git rev-list --parents`;⛔ `auto_merge` 与回显都不作数。
53+
- 两条 2026-09-12 两席实调;备用通道 MCP `update_pull_request` 与 `enable_pr_auto_merge`。
54+
- 直合仓另有 `PUT .../pulls/{n}/merge`;ccr 的 timeline actor 记 `claude[bot]`,MCP 记席位账号。
4855

49-
## 不可迁移 —— 只有这几件,围着它们排计划
56+
## 不可迁移 —— 只有这三件,围着它们排计划;红窗守候规则住 `platform-readings.md` 配额段
5057

51-
红窗守候规则住 `platform-readings.md` 配额段。
52-
53-
1. draft 转 ready 翻转:GraphQL-only mutation;出口代理只放钉住的 PR-review GraphQL 集。
54-
判据 = 2026-09-11 实调:REST `PATCH /pulls/{n}` 带 `{"draft": false}` 回 200 且什么都没改,读回仍 draft
55-
⇒ 状态码不作数,读回才作数。通道 = MCP `update_pull_request`;断粮:等它恢复或人工点一下。
56-
2. auto-merge 与入队挂载:GraphQL mutation,即 MCP `enable_pr_auto_merge`。
57-
走合并队列的仓落地必经它 ⇒ 配额红窗无退路;直合仓有退路 `PUT .../pulls/{n}/merge`。
58-
3. 语义搜索:`/search/*` 被出口代理按设计拒绝。退路 = REST 列表端点加本地 grep。
58+
1. 语义搜索:`/search/*` 被出口代理按设计拒绝。退路 = REST 列表端点加本地 grep。
5959
REST 也被会话门关掉的席位 = 一次定向 MCP `search_issues`,⛔ 不宽表扫。
60-
4. Projects field_values:GraphQL-only —— 舰队并不需要它;MCP 服务器端无条件抓它才是漏点。
61-
5. `issue transfer`:issues 端点表无 transfer 路由(核对文档,未实调)⇒ 同为 GraphQL-only。
60+
2. Projects field_values:GraphQL-only —— 舰队并不需要它;MCP 服务器端无条件抓它才是漏点。
61+
3. `issue transfer`:issues 端点表无 transfer 路由(核对文档,未实调)⇒ 同为 GraphQL-only。
6262
拿不到时当轮改走在目的仓重建配方,配方住 `platform-readings.md`。
6363

6464
## 第三桶 —— git 零配额等价物

0 commit comments

Comments
 (0)