From 3cce255fc1598ce9c7d0c871dbd6dbcd4271e211 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 16 Feb 2022 18:50:02 +0100 Subject: maintainers/scripts/update.nix: Add experimental support for customizing commit message --- maintainers/scripts/update.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'maintainers/scripts/update.py') diff --git a/maintainers/scripts/update.py b/maintainers/scripts/update.py index 06b12a0ee04ec..07e0b5c68305c 100644 --- a/maintainers/scripts/update.py +++ b/maintainers/scripts/update.py @@ -88,6 +88,10 @@ async def commit_changes(name: str, merge_lock: asyncio.Lock, worktree: str, bra async with merge_lock: await check_subprocess('git', 'add', *change['files'], cwd=worktree) commit_message = '{attrPath}: {oldVersion} → {newVersion}'.format(**change) + if 'commitMessage' in change: + commit_message = change['commitMessage'] + elif 'commitBody' in change: + commit_message = commit_message + '\n\n' + change['commitBody'] await check_subprocess('git', 'commit', '--quiet', '-m', commit_message, cwd=worktree) await check_subprocess('git', 'cherry-pick', branch) -- cgit 1.4.1