larryhudson / aiderbot

AI coding assistant that can resolve issues in your GitHub repo
3 stars 0 forks source link

Do not make a new branch and PR if no changes have been made #23

Closed larryhudson closed 1 month ago

larryhudson commented 1 month ago

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?

larryhudson-aider-github[bot] commented 1 month ago

I've created a pull request to address this issue: https://github.com/larryhudson/github-app-aider/pull/24