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

This commit is contained in:
Martin Weinelt 2023-12-02 01:37:41 +01:00
parent 929da50216
commit 180ccef717
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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])