Skip to content

Add --json export functionality to repo commands#3627

Merged
mislav merged 3 commits intotrunkfrom
repo-json-export
May 17, 2021
Merged

Add --json export functionality to repo commands#3627
mislav merged 3 commits intotrunkfrom
repo-json-export

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented May 12, 2021

Adds JSON export functionality to gh repo view & gh repo list.

$ gh repo view --json licenseInfo,primaryLanguage,stargazerCount
{
  "licenseInfo": {
    "key": "mit",
    "name": "MIT License",
    "nickname": ""
  },
  "primaryLanguage": {
    "name": "Go"
  },
  "stargazerCount": 23340
}

Followup to #3414

Copy link
Contributor

@samcoe samcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

"projects",

// "branchProtectionRules", // too complex to expose
// "collaborators", // does it make sense to expose without affiliation filter?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My vote is no. Lets skip for now and if it is requested we can revisit.

Base automatically changed from export-data to trunk May 17, 2021 11:43
@mislav mislav changed the title Add repo view --json export functionality Add --json export functionality to repo commands May 17, 2021
@mislav mislav merged commit 4b0b422 into trunk May 17, 2021
@mislav mislav deleted the repo-json-export branch May 17, 2021 14:53
@mislav mislav mentioned this pull request Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants