From a1f1314b85466a80c28aaab8f17ab0fd36fbdddd Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 24 Aug 2026 06:17:46 +0000 Subject: [PATCH] Note API_REPOS_READ on repo list and get help. Listing and showing a repository now need API_REPOS_READ (WRITE or ALL also work). The API no longer treats any valid token as enough. Co-authored-by: Fang-Pen Lin --- src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index fbc8dfe..0970d7e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -90,7 +90,7 @@ enum Commands { #[derive(Subcommand)] enum RepoCommand { - /// List repositories the current token can see. + /// List repositories. Needs API_REPOS_READ (or API_REPOS_WRITE or ALL). List { #[arg(long)] json: bool, @@ -110,7 +110,7 @@ enum RepoCommand { #[arg(long)] json: bool, }, - /// Show one repository. + /// Show one repository. Needs API_REPOS_READ (or API_REPOS_WRITE or ALL). Get { /// NAME or owner/NAME. name: String,