mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 04:35:00 +00:00
append (aider) to author if aider wrote the code
This commit is contained in:
parent
39f10aefe0
commit
9e228670a2
3 changed files with 19 additions and 10 deletions
|
@ -332,7 +332,7 @@ class Commands:
|
|||
|
||||
last_commit = self.coder.repo.repo.head.commit
|
||||
if (
|
||||
"(aider)" not in last_commit.committer.name
|
||||
not last_commit.author.name.endswith(" (aider)")
|
||||
or last_commit.hexsha[:7] != self.coder.last_aider_commit_hash
|
||||
):
|
||||
self.io.tool_error("The last commit was not made by aider in this chat session.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue