ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 turgid-tributary

review-queue

Claude Code 外掛,在狀態列顯示等待你審核的開放 PR 數量,透過 gh 使用 GitHub 的 review-requested:@me 查詢,並依排程更新。

turgid-tributary@turgid-tributary

turgid-tributary/claude-plugins/tree/main/plugins/review-queue

已翻譯

關於這個 mod

這個 Claude Code 外掛(函式 hook 外掛)會在狀態列以「You're a slacker, McFly: 9 reviews」顯示等待你審核的開放 PR 數量。它使用 gh api search/issues 查詢 is:pr is:open review-requested:@me archived:false,讀取 total_count;在 session.start 時擷取,之後每五分鐘透過 $.clock.every 更新。如果 gh 失敗(未登入或離線),狀態列會顯示 reviews: ?。它需要已登入的 gh(gh auth login)。你可以編輯 hooks/register.ts 中的 PREFIX 和 REFRESH_MS 來調整文案與更新間隔;開發時使用 claude plugin validate --strict、claude plugin test 和 claude --plugin-dir 載入它。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add turgid-tributary/claude-plugins
claude plugin install review-queue
原文 / README

review-queue

Puts the number of open pull requests waiting on your review in the Claude Code status line:

You're a slacker, McFly: 9 reviews

It counts open PRs where you are a requested reviewer, skipping archived repositories, the same set as GitHub's review-requested:@me search. The count is fetched when the session starts and every five minutes after. If gh fails (not logged in, offline), the line reads You're a slacker, McFly: reviews: ?.

Requirements

  • gh, logged in (gh auth login)

How it works

This is a mod: a plugin of function hooks (hooks/register.ts) rather than commands or agents. On session.start it runs gh api search/issues for is:pr is:open review-requested:@me archived:false, reads total_count, and sets the line with $.ui.status. A $.clock.every timer repeats that every five minutes.

To change the wording, edit PREFIX in hooks/register.ts; to change how often it refreshes, edit REFRESH_MS.

Developing

claude plugin validate --strict plugins/review-queue
claude plugin test plugins/review-queue
claude --plugin-dir plugins/review-queue    # load it from disk; edits hot-reload

Once Claude Code has loaded the mod from disk, .claude-plugin/types/ holds the API typings and tsc -p plugins/review-queue type-checks it.

更多類似作品