changelogen icon indicating copy to clipboard operation
changelogen copied to clipboard

feat: auto-update changelog files

Open Intevel opened this issue 2 years ago • 6 comments

Related to #13

This PR should not be merged until #23 is fixed. With the appendFile flag the changelog is appended to the start of the file

Intevel avatar Jun 26 '22 20:06 Intevel

Thanks for this PR 💯 One small thing, we need to kinda parse the readme to add new version to the top of the readme (before first ##). See this example changelog: https://github.com/unjs/changelogen/blob/main/CHANGELOG.md

pi0 avatar Jun 27 '22 09:06 pi0

Thanks for this PR 💯 One small thing, we need to kinda parse the readme to add new version to the top of the readme (before first ##). See this example changelog:

Do you think we should read the new version from package.json and then include it in the changelog?

Intevel avatar Jun 28 '22 07:06 Intevel

I think we can introduce the version bump feature to package.json in next iteration.

pi0 avatar Jun 29 '22 08:06 pi0

Are you working on it?

Intevel avatar Jun 29 '22 10:06 Intevel

No but plan to. With this pr, you can use to prop as version. It works on versioned HEAD.

pi0 avatar Jun 29 '22 10:06 pi0

@pi0 Any updates on the version bump feature?

Intevel avatar Jul 23 '22 23:07 Intevel

Codecov Report

Merging #24 (cf90f42) into main (48f609b) will increase coverage by 1.08%. The diff coverage is 93.33%.

:exclamation: Current head cf90f42 differs from pull request most recent head 7362c62. Consider uploading reports for the commit 7362c62 to get more accurate results

@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
+ Coverage   88.23%   89.32%   +1.08%     
==========================================
  Files           4        4              
  Lines         272      281       +9     
  Branches       43       45       +2     
==========================================
+ Hits          240      251      +11     
+ Misses         32       30       -2     
Impacted Files Coverage Δ
src/config.ts 88.13% <88.88%> (+0.13%) :arrow_up:
src/markdown.ts 98.92% <100.00%> (+3.22%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Sep 01 '22 11:09 codecov[bot]

Hi @Intevel. Sorry it took long to be back on this. I've pushed few changes to this feature and preparing for next major version. We by default will update CHANGELOG.md and (preprend) the latest version in entry. I've also added new option of --output to specify changelog file. Using changelogen --no-output it will do as before behavior.

Until supporting --bump, the title entry is config.to which is latest ref.

pi0 avatar Sep 01 '22 12:09 pi0