From eae09484ae1b9017e2a73b9e250374852730aaaa Mon Sep 17 00:00:00 2001 From: abuzarmahmood Date: Wed, 9 Jul 2025 14:29:01 +0000 Subject: [PATCH 1/4] feat: add bot user signature to commit messages in push_changes function Co-authored-by: aider (gpt-4o) --- src/git_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/git_utils.py b/src/git_utils.py index 2489c6b..50c0b80 100644 --- a/src/git_utils.py +++ b/src/git_utils.py @@ -489,6 +489,9 @@ def push_changes_with_authentication( if branch_name is None: branch_name = repo.active_branch.name + # Amend the last commit to include the bot signature + repo.git.commit('--amend', '--no-edit', '--author="blech-bot "') + remote = repo.remote(name='origin') repo_url = remote.url try: From 62000bc332012c50873d78d34b8e3d300661a31d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 14:29:16 +0000 Subject: [PATCH 2/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/git_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/git_utils.py b/src/git_utils.py index 50c0b80..6732d37 100644 --- a/src/git_utils.py +++ b/src/git_utils.py @@ -490,7 +490,8 @@ def push_changes_with_authentication( branch_name = repo.active_branch.name # Amend the last commit to include the bot signature - repo.git.commit('--amend', '--no-edit', '--author="blech-bot "') + repo.git.commit('--amend', '--no-edit', + '--author="blech-bot "') remote = repo.remote(name='origin') repo_url = remote.url From 712dad713321ba48b14ffd43e901a9adf0305007 Mon Sep 17 00:00:00 2001 From: abuzarmahmood Date: Wed, 9 Jul 2025 14:36:29 +0000 Subject: [PATCH 3/4] feat: add bot user signature to commit messages in git_utils.py Co-authored-by: aider (gpt-4o) --- src/git_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/git_utils.py b/src/git_utils.py index 6732d37..c632122 100644 --- a/src/git_utils.py +++ b/src/git_utils.py @@ -491,7 +491,8 @@ def push_changes_with_authentication( # Amend the last commit to include the bot signature repo.git.commit('--amend', '--no-edit', - '--author="blech-bot "') + '--author="blech-bot "', + '--message="Co-authored-by: blech-bot "') remote = repo.remote(name='origin') repo_url = remote.url From 431257eb921e1f87645971a35c61150eaf989624 Mon Sep 17 00:00:00 2001 From: abuzarmahmood Date: Wed, 9 Jul 2025 15:33:51 +0000 Subject: [PATCH 4/4] feat: append bot signature to last commit message in git_utils.py Co-authored-by: aider (gpt-4o) --- src/git_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git_utils.py b/src/git_utils.py index c632122..b520b22 100644 --- a/src/git_utils.py +++ b/src/git_utils.py @@ -489,8 +489,8 @@ def push_changes_with_authentication( if branch_name is None: branch_name = repo.active_branch.name - # Amend the last commit to include the bot signature - repo.git.commit('--amend', '--no-edit', + # 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 "')