manuacl/claude-mods/tree/main/plugins/gh-hud
gh-hud
Claude Code 的 GitHub HUD:会话存储库的拉取请求在窗格中,带有 GitHub-style 选项卡、搜索、过滤器、合并框和 /gh-hud 命令,可通过 gh CLI 读取。
关于这个 mod
GH HUD
会话的 GitHub 存储库位于窗格中:GitHub 的选项卡(问题、拉取请求、操作),首先是拉取请求页面;其他的都一来了。
- 窗格按照 GitHub 的方式列出拉取请求:打开和关闭及其计数(已关闭的合并计数)、打开、草稿、合并或关闭图标、粗体标题、其颜色为圆形药丸的标签,然后是
#3 opened 2 days ago by author,以及是否是草稿、已批准或正在等待审核。 - 选项卡下的搜索采用GitHub自己的语法(
author:、label:、review:required…);输入搜索内容,空白字段会再次列出所有搜索内容。 - 过滤器通过按钮在抽屉中打开:作者、标签、评论、受让人和排序,如 GitHub 的菜单;该按钮对这些进行计数。
- 密度开关将每个拉取请求放在一行上,其图标、标题、编号和作者,或者放在两行上,并带有标签、年龄和评论。
- 单击标题会在窗格中打开拉取请求,而不是在浏览器中:它的状态、谁合并什么、在哪里、描述、评论和更改的文件;返回列表。
- 开放拉取请求底部的合并框遵循存储库的规则:为什么它还不能合并(阻止、冲突、过时、草稿),或者 GitHub 的按钮,先挤压,其 ▾ 列出存储库允许的其他方法,用 GitHub 的话(没有 ▾ 当允许时),在第二次按下时确认。仅合并显示上的提交(
gh pr merge --match-head-commit):中间的推送会导致失败。 - 它会在 GitHub 存储库中的会话开始时自行打开,并打开拉取请求;
/gh-hud随时打开。 - 保持新鲜 在会话开始时,每分钟一次(在 GitHub 上进行审查或合并),在每个回合结束时(Claude 可能已推送或打开一个),当您按下 Pull 时请求选项卡和
/gh-hud。没有模型调用,所以没有令牌:每分钟一个gh请求,远低于 GitHub 的 5000 每小时。 - 语言:英语或法语,
/config。auto遵循 Claude Code 的language设置,然后是LC_ALL、LC_MESSAGES、LANG。
需要 gh CLI,登录 (gh auth login):mod 运行 gh pr list、gh pr view、gh repo view,并且在您确认后,在会话文件夹中运行 gh pr merge,并且永远不会看到令牌。在 GitHub 存储库之外,该窗格显示 gh 自己的错误。没有文件,没有其他命令。
拉取请求图标为 Octicons(GitHub、MIT)。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add manuacl/claude-mods claude plugin install gh-hud
原文 / README
GH HUD
The session's GitHub repository in a pane: GitHub's tabs (Issues, Pull requests, Actions), the pull requests' page first; the others come one by one.
- The pane lists the pull requests the way GitHub does: Open and Closed with their counts (merged ones among the closed), the open, draft, merged or closed icon, the bold title, its labels as rounded pills in their colors, then
#3 opened 2 days ago by author, and whether it is a draft, approved or awaiting review. - The search under the tabs takes GitHub's own syntax (
author:,label:,review:required…); Enter searches, an empty field lists them all again. - The filters open in a drawer from their button: Author, Label, Reviews, Assignee and Sort, as GitHub's menus; the button counts those on.
- The density switch puts each pull request on one line, its icon, title, number and author, or back on two with labels, age and review.
- A click on a title opens the pull request in the pane, not in the browser: its state, who merges what where, the description, the comments and the files changed; Back returns to the list.
- The merge box at the bottom of an open pull request follows the repository's rules: why it cannot be merged yet (blocked, conflicts, out of date, draft), or GitHub's button, squash first, its ▾ listing the other methods the repository allows with GitHub's words (no ▾ when it allows one), confirmed in a second press. Only the commit on show is merged (
gh pr merge --match-head-commit): a push in between makes it fail. - It opens by itself at the start of a session in a GitHub repository with open pull requests;
/gh-hudopens it anytime. - Kept fresh at the start of the session, once a minute (a review or a merge on GitHub), at the end of every turn (Claude may have pushed or opened one), when you press the Pull requests tab and on
/gh-hud. No model call, so no token: oneghrequest a minute, far under GitHub's 5000 an hour. - Language: English or French, in
/config.autofollows Claude Code'slanguagesetting, thenLC_ALL,LC_MESSAGES,LANG.
Needs the gh CLI, signed in (gh auth login): the mod runs gh pr list, gh pr view, gh repo view and, on your confirmation, gh pr merge in the session's folder and never sees a token. Outside a GitHub repository the pane shows gh's own error. No files, no other commands.
The pull request icons are Octicons (GitHub, MIT).
