It is too easy to accidentally private the wrong repository in `gh repo edit`
まだ誰も着手していません。
評価
調査の方向性
gh repo edit の可視性フローから始め、issue に記載された確認プロンプトを再現します。最終確認の前に対象リポジトリ名が明確に表示されるようフローを更新し、その後、可視性の変更が適用される前に名前が表示されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
It is too easy to accidentally set the wrong repository to private and not realize it until it's too late.
For one recent case of this, cf. Hexo accidentally being set to private because this command was run in the wrong folder.
Whereas repository deletion on both web and CLI has the enter-your-repo-name-style confirmation, and visibility edits on the web shows you your repository in big bold letters plus two extra confirmations before the final red button:
...visibility edits on CLI currently just shows big warnings with no reminder which repository the action will be performed on.
Affected version
gh version 2.92.0 (2026-04-28)
https://github.com/cli/cli/releases/tag/v2.92.0
Steps to reproduce the behavior
gh repo edit- Choose visibility and change it
- See the warnings - which on their own are not obvious why they may be relevant.
Expected vs actual behavior
I expect the repository name to be one of the things being highlighted in this flow, instead of being hidden until it's already too late.
Logs
~/git/kisaragi-rime-taigi main
❯ gh repo edit [2026-05-15T22:53:31+0900]
? What do you want to edit? Visibility
! Danger zone: changing repository visibility can have unexpected consequences; consult https://gh.io/setting-repository-visibility before continuing.
? Visibility private
! Changing the repository visibility to private will cause permanent loss of 0 stars and 1 watcher.
? Do you want to change visibility to private? Yes
✓ Edited repository kisaragi-hiu/kisaragi-rime-taigi
~/git/kisaragi-rime-taigi main 10s
❯ [2026-05-15T22:53:43+0900]
- 主要言語
- Go
- スター
- 46.3k
- フォーク
- 9.1k
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 76
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cli/cli のほかの issue
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
more-info-needed needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
bug gh-pr priority-2
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
bug gh-pr priority-2
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
bug gh-auth priority-3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Bob Shell support オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
santhosh-tekuri/jsonschema#276 ·