update-python-libraries: add package changelog to commit message

This commit is contained in:
Martin Weinelt
2023-12-02 03:22:02 +01:00
parent 929da50216
commit 180ccef717
@@ -492,6 +492,9 @@ def _commit(path, pname, old_version, new_version, pkgs_prefix="python: ", **kwa
msg = f'{pkgs_prefix}{pname}: {old_version} -> {new_version}'
if changelog := _get_attr_value(f"{pkgs_prefix}{pname}.meta.changelog"):
msg += f"\n\n{changelog}"
try:
subprocess.check_call([GIT, 'add', path])
subprocess.check_call([GIT, 'commit', '-m', msg])