I have built AdaGPT, an AI-powered GitHub Action that generates helpful responses for Issues and Pull Requests. It's like having a conversation with ChatGPT, but without actually leaving GitHub and available to everyone.
All you have to do is mention @AdaGPT in your issue or comments and she will respond to you with a helpful and charming reply.
Here are some screenshots of Issues and Pull Requests
AdaGPT is a GitHub Action that responds to issues and pull requests if they mention
AdaGPT takes into account the description of the issue as well as all existing comments. For pull requests, AdaGPT also has access to the Git diff the changes.
Trying out AI has been on my list of side projects for a long time. This hackathon finally gave me the motivation to tackle it. The idea for this GitHub activity came to me while using ChatGPT. A conversation using ChatGPT is similar to a discussion in an issue or pull request. However, on GitHub, multiple people can participate in the discussion and the messages are visible to everyone. Therefore, it sounded like an exciting idea to simply include ChatGPT in conversations on GitHub and make it available to everyone.
How I built it (How did you utilize GitHub Actions or GitHub Codespaces? Did you learn something new along the way? Pick up a new skill?)
The GitHub Action was implemented with TypeScript using the GitHub Actions Toolkit and the OpenAI Node.js Library.
The Action is activated on issues, pull requests, and comments, if the description or comment contains
The relevant issue number is determined from the event payload and doesn't need to be passed separately. In case of a pull request, the git diff of all changes is retrieved from the GitHub API. Furthermore, if the Action was triggered by a comment, all existing previous comments are read from the API.
Finally, a corresponding prompt is generated from all information (issue, pull request diff, comments) and the request is sent to OpenAI. The response of the request is added as a new comment to the issue.