Skip to content

Add JSON CLI output format #1089

Closed
Closed

Description

@funrun11

Describe the feature or problem you’d like to solve

Having machine readable output make possible to build automations around gh

Proposed solution

add --json command line argument

Additional context

➜  my_repo git:(master) gh pr status --json
{
  pull_request: [
    { pull_request_number: 234,
     title: "Title",
     original_repo: "username/repo",
     checks:[...]
    {...}
  ]
}

Activity

  1. AliabbasMerchant commented on Jun 3, 2020

    @AliabbasMerchant
    Contributor

    This is similar to #385

  2. vilmibm commented on Oct 7, 2020

    @vilmibm
    Contributor

    Closing as dupe of #385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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