Skip to content

GitHub 集成方案 mockup(Tier 1 + Tier 2)#93

Closed
vaayne wants to merge 3 commits into
mainfrom
mockup/github-integration
Closed

GitHub 集成方案 mockup(Tier 1 + Tier 2)#93
vaayne wants to merge 3 commits into
mainfrom
mockup/github-integration

Conversation

@vaayne

@vaayne vaayne commented Jun 24, 2026

Copy link
Copy Markdown
Owner

让 Mori 更好地管理 PR。嵌 github.com 整页 WebView —— 认证两套 token、不 native、脱离 worktree 上下文。

可视化 mockup:docs/mockups/github-integration.html(浏览器打开,顶部切换 Tier 1 / Tier 2 / 叠加)。

Tier 1 — gh dash 作为 companion tool(先做)

官方 gh-dash TUI 跑在右侧 ~420pt companion pane,⌥G 唤起,复用现有 lazygit 架构。新增一个 CompanionTool 枚举值 + 键位,几乎零新 UI。

Tier 2 — worktree PR 状态条(小幅 native)

每个 worktree 行下挂 PR 状态条,绑当前 branch:gh pr view --json number,state,statusCheckRollup,reviewDecision → 显示 编号/状态/CI checks,点击 checkout 或开浏览器。新建 MoriGitHub 包,沿用 MoriGit 的 actor + 轮询模式。

暂不做

Tier 3 富 PR WebView(只嵌单个 PR URL)—— 先验证前两层需求。


⚠️ 本 PR 仅含 mockup(HTML + 说明文档),无功能代码。 确认方向后再分 Tier 实现。

vaayne added 3 commits June 24, 2026 12:12
两层方案的可视化提案,不嵌 github.com WebView:
- Tier 1: gh dash 作为 companion tool 复用 lazygit 架构
- Tier 2: worktree 行下挂 PR 状态条,绑定 branch
仅 mockup,无功能代码。
@vaayne vaayne closed this Jun 24, 2026
@vaayne vaayne deleted the mockup/github-integration branch June 24, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant