Review tools: let the caller name the GitHub CLI command in `validate-audit-record.py` and `github-review-threads`

オープン
#2,973 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, rust
領域
tooling

調査の方向性

Read .claude/skills/process-pr-review/scripts/validate-audit-record.py, contrib/dev-tools/github/github-review-threads/src/lib.rs, and the scripts under .claude/skills/resolve-review-threads/scripts/; compare their command handling with the wait-for-pr-review design from #2822. Decide and document one command-selection convention, update the calling skills, and add tests using a fake command without a PATH shim. Done when each scoped tool can use the caller-selected GitHub CLI command and its tests cover that behavior.

索引モデルが issue の本文から書いたものです。

説明

Parent EPIC: #2003 - Overhaul: Automation Tools and AI Agent Guardrails

Goal

Let the caller name the GitHub CLI command in the review tools that still hardcode gh, as #2822 did for wait-for-pr-review with --gh-command.

Problem

Checked on develop at 7bc30738a:

  • .claude/skills/process-pr-review/scripts/validate-audit-record.py line 98 runs subprocess.run(["gh", "api", ...]).
  • contrib/dev-tools/github/github-review-threads/src/lib.rs line 66 runs Command::new("gh"), and the tool has no option to change it.
  • The scripts in .claude/skills/resolve-review-threads/scripts/ also call gh (not checked one by one).

A contributor who must run as a GitHub identity other than the default gh login has no supported way to do it with these tools. The only general way is a gh on PATH that runs the other identity's command, which is the stand-in that #2822 was opened to make unnecessary (it called itself without end and crashed a desktop session four times). Today the workaround is to set the token in the environment for that one command, or to patch the call at run time.

An agent that cannot choose the command can also act under the wrong identity without noticing.

Proposed scope

  • A way to name the command in each tool (an option or an environment variable; decide one convention in the specification and reuse the #2822 design where it fits).
  • The skills that call these tools say how to pass it.
  • Tests that pass a fake command, with no PATH shim.

Notes

  • Not started. The order among the EPIC's sub-issues is decided when a slot is free. The specification and the EPIC table row are written when the work starts.
  • Filed by the EPIC #2003 coordinator session (AI assistant, Claude Code) on 2026-11-19 at the maintainer's request, so the idea is not lost.
主要言語
Rust
スター
532
フォーク
56
平均マージ
11時間 20分
マージ済み PR(30日)
282

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

torrust/torrust-tracker のほかの issue

torrust/torrust-tracker の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。