Skip to content

Add structured JSON output for changelog #261

Description

@abhinavgautam01

Most query/network commands support --format json, but git pkgs changelog only emits text.

Structured output would make changelog data easier to consume in release tooling, bots and CI reports.

Suggested CLI:

git pkgs changelog lodash -e npm --from 4.17.20 --to 4.17.21 --format json

Suggested JSON shape:

{
  "package": "lodash",
  "ecosystem": "npm",
  "from": "4.17.20",
  "to": "4.17.21",
  "repository": "https://github.com/lodash/lodash",
  "changelog_filename": "CHANGELOG.md",
  "entries": [
    {
      "version": "4.17.21",
      "content": "..."
    }
  ]
}

Text output should remain the default. Invalid formats should return an explicit error, consistent with other formatted commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions