Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support generating changelog from a JSON context #657

Closed
1 task done
orhun opened this issue May 26, 2024 · 0 comments · Fixed by #784
Closed
1 task done

Support generating changelog from a JSON context #657

orhun opened this issue May 26, 2024 · 0 comments · Fixed by #784
Labels
feature/request New feature or request good first issue Good for newcomers

Comments

@orhun
Copy link
Owner

orhun commented May 26, 2024

Is there an existing issue or pull request for this?

  • I have searched the existing issues and pull requests

Feature description

git-cliff currently supports printing out the context via -x argument:

$ git cliff -x | jq . | head -n 5

[
  {
    "version": null,
    "commits": [
      {

It would be nice to generate a changelog from this JSON context as well.

Desired solution

A new command-line argument might be introduced or we can take the context from stdin:

$ git-cliff -x > context.json

$ git-cliff --from-context context.json -o CHANGELOG.md

$ cat context.json | git-cliff

Alternatives considered

None.

Additional context

https://git-cliff.org/docs/templating/context

closes #773

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/request New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant