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

Add an aggregate command #16

Closed
marcaddeo opened this issue Jul 27, 2020 · 0 comments · Fixed by #17
Closed

Add an aggregate command #16

marcaddeo opened this issue Jul 27, 2020 · 0 comments · Fixed by #17

Comments

@marcaddeo
Copy link
Owner

We should have an aggregate command that takes the items from the .cl directory, and aggregates them all into the CHANGELOG.md's Unreleased section.

Currently using this in our CI:

  $CLPARSE CHANGELOG.md -f json | cat - <($CL -f json) | \
    $JQ -s ".[0].releases[0].changes+=.[1] | .[0]" | \
    $CLPARSE - > CHANGELOG.md.new \
    && mv CHANGELOG.md.new CHANGELOG.md

  find .cl -name "*.yml" -type f -delete

But it no longer works because cl now displays changes from the Unreleased section, as well as the .cl directory. So whenever you run the command above, it causes the CHANGELOG to duplicate all entries.

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 a pull request may close this issue.

1 participant