Skip to content

pr list: add more information about author in JSON output #4912

Description

@mislav

Currently, gh pr list --search is:closed --json id,title,url,author returns:

[
  {
    "author": {
      "login": "axelson"
    },
    "id": "PR_kwDOB44BBs4vZTMD",
    "title": "Default fetchDeps to false",
    "url": "https://github.com/elixir-lsp/elixir-ls/pull/633"
  }
]

What could be useful information to add the author object is the author ID (for scripting), their full name, and the information about whether the author is a bot account. Ref. #4045 (comment)

Originally posted by @axelson in #4854

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions