append (aider) to author if aider wrote the code

This commit is contained in:
Paul Gauthier 2024-06-18 11:18:52 -07:00
parent 39f10aefe0
commit 9e228670a2
3 changed files with 19 additions and 10 deletions

View file

@ -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.")