diff --git a/src/git_utils.py b/src/git_utils.py index 2489c6b..b520b22 100644 --- a/src/git_utils.py +++ b/src/git_utils.py @@ -489,6 +489,11 @@ def push_changes_with_authentication( if branch_name is None: branch_name = repo.active_branch.name + # Amend the last commit to append the bot signature + repo.git.commit('--amend', '--no-edit', '--allow-empty-message', + '--author="blech-bot "', + '--message="Co-authored-by: blech-bot "') + remote = repo.remote(name='origin') repo_url = remote.url try: