cli / cli/cli

Add a way to output the `--dry-run` flag as a JSON

Open
#11,025 3 comments 0 reactions 0 assignees View on GitHub
enhancement gh-pr needs-product needs-triage
Dominant language
Go
Stars
46.3k
Forks
9k
Avg merge
2d 9h
Merged PRs (30d)
89

Description

### Describe the feature or problem you’d like to solve

It would be great if I could run something like
```
gh pr create --dry-run --json
```
and get the output as a json.

This feature would help a lot when creating libraries that wrap the gh cli project.

### Proposed solution

I've yet to look at the source code, but I guess that the json creation part has already been done (since I suppose that github uses JSON for its API)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.