SUSE-Enceladus / keg

Kiwi Entwicklungs-Gerät (tool to produce kiwi image descriptions)
GNU General Public License v3.0
8 stars 6 forks source link

Add changelog generator #79

Closed jgleissner closed 2 years ago

jgleissner commented 2 years ago

Add a script that generaters a changelog (text and yaml format supported) from the git commit history and the source info log produced by keg.

jgleissner commented 2 years ago

Unit tests are broken. They work locally so this may need some time for debugging.

jgleissner commented 2 years ago

I see where the problem with the unit tests is. I use real data from the repository's commit log, but in the CILint the commit history isn't available so this fails. Seems I'll have to feed it fake data instead. I guess that's the better option anyway.

jgleissner commented 2 years ago

Unit tests are fixed, but it appears the capture_output parameter I use with subprocess isn't supported by python 3.6. Compatibility with python 3.6 may not be a bad idea, so I'll look into changing it.

jgleissner commented 2 years ago

This should be ok for merge now, another look-over may be not a bad idea. I just noticed an issue with the implementation, namely that it doesn't work with multiple data roots. This should be fixable by storing the data path separately in the source log. I will create a separate PR for that.