-
Hello, It will be helpful if Some projects has adopted the way to split CHANGELOG into many files organized by major or minor version series. I'm preparing the next major release 5.0.0 of CompatInfoDB, and I've noticed that I should remove by hand all 4.x versions if I want to have a clean CHANGELOG.md file. See commit llaville/php-compatinfo-db@675da34 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hmm, I think that sounds reasonable for some use cases. My issue comes with the inevitable manual file changes required to move from one version to another as Changie's purpose is to not have any manual changes ( it does allow for some when it comes to adding custom things but normal operations shouldn't ). The problems I see are:
Generally speaking, any argument you need for "every" batch or merge should be in the config. Therefore, I feel the best approach ( as of the short time thinking about it ) would be to expand the https://changie.dev/config/#config-changelogpath to optionally be an array of "ChangelogOutputs". Something like: changelogOutputs:
- file: CHANGELOG-10.md
range: >=10
header: header.tpl.md // this is maybe a future idea, but a different header file per output might also be good
- file: ./.changes/CHANGELOG-archive.md
range: <10
header: header-archive.tpl.md The current changelog path would basically just be a shorthand for: changelogOutputs:
- file: <changelogPath>
header: <headerPath>
range: >0 // all versions Now releasing a new major version would then require config changes in this case, maybe it could be templated with a I would probably say I need more examples to justify the extra work and to see how they might be splitting it. Some projects might just have an arbitrary split where it got too big or something like that. |
Beta Was this translation helpful? Give feedback.
-
First, I would like to thanks you for your answer, that allow me to think again and re-discover basic feature of changie v1.10 I've tested v1.10.1 (thanks too for this new version), but v1.10.0 already allows to apply use case I've with major versions.
PS: my use cas is available at https://github.com/llaville/php-compatinfo-db/tree/master/.changes/ |
Beta Was this translation helpful? Give feedback.
First, I would like to thanks you for your answer, that allow me to think again and re-discover basic feature of changie v1.10
I've tested v1.10.1 (thanks too for this new version), but v1.10.0 already allows to apply use case I've with major versions.
I'll try to explain.
.changes
, one for each major version or major/minor