Skip to content

gh repo delete: ignore --yes when no argument provided #11535

@BagToad

Description

@BagToad

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.

Metadata

Metadata

Labels

enhancementa request to improve CLIgh-reporelating to the gh repo command

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions