ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 manuacl

gh-hud

Claude Code 用の GitHub HUD: GitHub-style タブ、検索、フィルター、マージ ボックス、および /gh-hud コマンドを備えたペイン内のセッション リポジトリのプル リクエスト。gh CLI を通じて読み取ります。

manuacl@manuacl

manuacl/claude-mods/tree/main/plugins/gh-hud

翻訳済み

この mod について

#GHHUD

ペイン内のセッションの GitHub リポジトリ: GitHub のタブ (問題、プル リクエスト、アクション)、最初にプル リクエストのページ。他の人たちは次々にやって来ます。

  • ペインには、GitHub と同じようにプル リクエストがリストされます。オープンとクローズの数 (クローズ済みの中でマージされたもの)、オープン、ドラフト、マージまたはクローズのアイコン、太字のタイトル、色の丸い錠剤としてのラベル、次に #3 opened 2 days ago by author、およびドラフト、承認済み、レビュー待ちのいずれであるかが表示されます。
  • タブの下の検索は、GitHub 独自の構文 (author:、label:、review:required…) を使用します。検索を入力すると、空のフィールドにすべての検索が再度リストされます。
  • フィルターはボタンからドロワーで開きます: GitHub のメニューとして、作成者、ラベル、レビュー、担当者、並べ替え。ボタンはそれらをカウントします。
  • 密度 スイッチは、各プル リクエストをアイコン、タイトル、番号、作成者とともに 1 行に配置するか、ラベル、年齢、レビューを付けて 2 行に戻します。
  • タイトルをクリックすると、ブラウザではなくペインでプル リクエストが開きます。プル リクエストの状態、誰がどこに何をマージしたか、説明、コメント、ファイルが変更されたかどうか。 「戻る」でリストに戻ります。
  • 開いているプル リクエストの下部にある マージ ボックスは、リポジトリのルールに従います。まだマージできない理由 (ブロック、競合、期限切れ、ドラフト)、または GitHub のボタンを最初に潰し、その ▾ リポジトリで許可されている他の方法を GitHub の言葉でリストし (許可する場合は ▾ なし)、2 回押すと確認されます。表示上のコミットのみがマージされます (gh pr merge --match-head-commit)。その間にプッシュすると失敗します。
  • オープンなプル リクエストを持つ GitHub リポジトリ内のセッションの開始時に自動的に開きます。 /gh-hud でいつでも開きます。
  • **セッションの開始時、1 分に 1 回 (GitHub でのレビューまたはマージ)、各ターンの終了時 (Claude がプッシュまたはオープンした可能性があります)、プルを押したとき、最新の状態に保たれます「リクエスト」タブと /gh-hud にあります。モデル呼び出しがないため、トークンもありません。gh リクエストは 1 分に 1 つであり、1 時間あたりの 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-hud opens 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: one gh request a minute, far under GitHub's 5000 an hour.
  • Language: English or French, in /config. auto follows Claude Code's language setting, then LC_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).

関連作品