-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
enhancementa request to improve CLIa request to improve CLIgh-reporelating to the gh repo commandrelating to the gh repo command
Description
Describe the feature or problem you’d like to solve
gh repo delete is dangerous when used with --yes and no argument as this will attempt to delete the repository in your current working directory.
Proposed solution
We should ignore --yes when there is no argument and force the user to confirm. If we cannot prompt (non-interactive), providing --yes without an argument should produce an error and exit.
Additional context
This will help prevent accidental deletion of important repositories.
Copilot
Metadata
Metadata
Labels
enhancementa request to improve CLIa request to improve CLIgh-reporelating to the gh repo commandrelating to the gh repo command