Skip to content

Add a dry-run flag to commands #1145

@AliabbasMerchant

Description

@AliabbasMerchant

Describe the feature or problem you’d like to solve

CLI is used for creating significant changes(issues, PRs, comments) in various repositories.
This may lead to inadvertent/unintended permanent changes in repositories and organisations.
Example: Inadvertently creating test PRs/Issues while testing.

Proposed solution

Either:

  1. Add a --dryrun flag to commands
    OR
  2. Confirm before making significant changes (Like how most linux package managers do)
    "Do you want to make these changes? (y/n)"
    And a -y flag, to skip this prompt

How will it benefit CLI and its users?

Although it may add an extra prompt (which can be skipped via the -y flag), this may add a level of security/sureity as to what the intended action is, and what is occurring.

Additional context

A few of the recent fake/test PRs/Issues/Comments we have received may have been inadvertent
(Happened with me twice 😓 Thankfully, was able to convert them into something useful)

This would be a potentially huge change, and would require lots of investment in terms of time

Metadata

Metadata

Assignees

Labels

enhancementa request to improve CLIneeds-designAn engineering task needs design to proceed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions