git-changelog-lib icon indicating copy to clipboard operation
git-changelog-lib copied to clipboard

Cache JIRA issues on filesystem

Open bethesque opened this issue 7 years ago • 4 comments
trafficstars

Thanks for your work on this library. It looks like it will be a great help to us.

I have a question about the expected usage. In some of my OSS projects, I use a changelog generation tool that prepends the release notes of the current changeset to the beginning of the CHANGELOG.md file each time I do a release.

git-changelog-lib seems to generate the entire changelog from scratch each time. When the Jira feature is enabled, this could be a seriously long running task! The only alternative I can see is to generate a temporary changelog file, and then prepend it to the existing CHANGELOG.md.

What is the recommended approach?

bethesque avatar Sep 24 '18 04:09 bethesque

Yes it will generate it from scratch each time. And yes prepending may work for you.

Im labeling this as enhencement to investigate if this can be implemented.

tomasbjerre avatar Sep 24 '18 04:09 tomasbjerre

As a potential source of inspiration, the conventional-changelog ruby gem that I use populates the fromRef from the most recent heading (tag) in the existing CHANGELOG.md file. This has worked very well for the projects that I've used it on.

bethesque avatar Sep 24 '18 05:09 bethesque

The GitHub issues are cached, on filesystem. If caching was implemented on filesystem also for Jira, perhaps that would solve your problem?

tomasbjerre avatar Sep 27 '18 06:09 tomasbjerre

This runs on Jenkins, with a clean environment each time, so that wouldn't help us unfortunately.

bethesque avatar Oct 02 '18 01:10 bethesque