Add author information in `pr list` JSON output by hirasawayuki · Pull Request #5049 · cli/cli · GitHub
Skip to content

Add author information in pr list JSON output#5049

Merged
vilmibm merged 5 commits into
cli:trunkfrom
hirasawayuki:add-more-author-infomation
Dec 8, 2022
Merged

Add author information in pr list JSON output#5049
vilmibm merged 5 commits into
cli:trunkfrom
hirasawayuki:add-more-author-infomation

Conversation

@hirasawayuki

@hirasawayuki hirasawayuki commented Jan 16, 2022

Copy link
Copy Markdown
Contributor

Fixes #4912
Fixes #4045

Add author information to be output by the pr list command.
Following commands can be used to check the operation:

$ go run cmd/gh/main.go --repo {your repository} pr list --search --json id,title,url,author

type: User

[
  {
    "author": {
      "id": "xxxxxxxxxx",
      "is_bot": false,
      "login": "xxxxxxxxxx",
      "name": "xxxxxxxxxx"
    },
    "id": "xxxxxxxxxx",
    "title": "xxxxxxxxxx",
    "url": "https://github.com/xxxxxxxxxx"
  },

type: Bot(dependabot)

[
  {
    "author": {
      "is_bot": true,
      "login": "app/dependabot"
    },
    "id": "xxxxxxxxxx",
    "title": "Bump xxxxxxxxxx",
    "url": "https://github.com/xxxxxxxxx"
  },

@hirasawayuki hirasawayuki requested a review from a team as a code owner January 16, 2022 12:27
@hirasawayuki hirasawayuki requested review from vilmibm and removed request for a team January 16, 2022 12:27
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Jan 16, 2022
@samcoe

samcoe commented Mar 29, 2022

Copy link
Copy Markdown
Contributor

@vilmibm vilmibm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a great start, but to be merged this PR should also add this key to:

  • issue list
  • search prs
  • search issues

@vilmibm vilmibm dismissed their stale review December 8, 2022 22:11

author abandoned pr

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

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pr list: add more information about author in JSON output Cannot filter out Renovate (bot) PRs

7 participants