Currently, if Aiderbot is mentioned but Aider does not make any changes, it will run into an issue where it creates a branch, and tries to make a pull request, but it fails because there are no commits to create a PR for.
We need to change the functionality so that before Aider runs, we check for the latest commit hash, then Aider runs, check for a new commit. If there is no new commit, do not create a new branch and PR. But still post a comment in response to the original question.
Currently, if Aiderbot is mentioned but Aider does not make any changes, it will run into an issue where it creates a branch, and tries to make a pull request, but it fails because there are no commits to create a PR for.
We need to change the functionality so that before Aider runs, we check for the latest commit hash, then Aider runs, check for a new commit. If there is no new commit, do not create a new branch and PR. But still post a comment in response to the original question.
@Aiderbot can you have a look at this?