-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
coreThis issue is not accepting PRs from outside contributorsThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIa request to improve CLI
Description
Describe the feature or problem you’d like to solve
I think having a way to output the results of the CLI comands to JSON or some other standardized output format would be a nice way to let users extend functionality without having to change the CLI code very much.
Proposed solution
Something like
$ gh pr status 123 --output=json
{"id": 123, "title": "Some cool PR", "branch": "my-cool-branch", "description": "some .md description", "checks_passing": true, "requires_review": false}
Users could then easily parse this and perform other actions using the data.
Additional context
My initial thought was using this to be able to automatically open the issue I'm working on in JIRA by extracting the JIRA tag number from our titles, but it could also be useful for other workflows.
lucasyvas, yuya373, broady, bdbaddog, mwichmann and 67 morenickcernis, sfertman, IdanAdar, ken0x0a, cubic3d and 3 more
Metadata
Metadata
Assignees
Labels
coreThis issue is not accepting PRs from outside contributorsThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIa request to improve CLI