It is too easy to accidentally private the wrong repository in `gh repo edit`
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 68/100
Piste de recherche
Commencez par le flux de visibilité de gh repo edit et reproduisez les invites de confirmation décrites dans l’issue. Mettez à jour le flux afin que le nom du dépôt cible soit clairement affiché avant la confirmation finale, puis vérifiez que le nom apparaît avant l’application de la modification de visibilité.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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]
- Langage dominant
- Go
- Étoiles
- 46.3k
- Forks
- 9.1k
- Merge moyen
- 1 j 7 h
- PR mergées (30 j)
- 76
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de cli/cli
-
enhancement
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
-
more-info-needed needs-triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
-
bug gh-pr priority-2
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
-
bug gh-pr priority-2
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
bug gh-auth priority-3
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Issues similaires
-
agentic-workflows
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
-
agentic-workflows
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
microsoft/agent-framework-go#1179 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
-
[Bug]: OLLAMA_KEEP_ALIVE="5m" / "24h" crashes Ollama embedding and vision models with ValueError Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
infiniflow/ragflow#20223 · 1 réaction ·
-
bug needs triage pkg/translator/faro
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
open-telemetry/opentelemetry-collector-contrib#51484 · 1 commentaire ·