AdaGPT: AI support for Issues and Pull Requests right at your fingertips!

What I built

I have built AdaGPT, an AI-powered GitHub Action that generates helpful responses to comments on Issues and Pull Requests. It’s like having a conversation with ChatGPT, but without actually leaving GitHub and available to everyo…


This content originally appeared on DEV Community and was authored by Chris

What I built

I have built AdaGPT, an AI-powered GitHub Action that generates helpful responses to comments on 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 comments and she will respond to your comment with a helpful and charming reply.

Category Submission:

Wacky Wildcards

App Link:

Repository
Marketplace

Screenshots

Here are some screenshots of Issues and Pull Requests

Explain Pull Requests

Explain Pull Requests

Rock, Paper, Scissors!

Rock, Paper, Scissors!

Description

AdaGPT is a GitHub Action that responds to comments on issues and pull requests if they mention @AdaGPT.

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.

Link to Source Code

AdaGPT Repository

Permissive License

MIT

Background (What made you decide to build this particular app? What inspired you?)

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 new comments on issues and pull requests if they mention @AdaGPT.
The relevant issue number is determined from the event payload. Then all existing comments for this issue are read. If the issue is a pull request, the git diff is also read.

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.

Additional Resources/Info


This content originally appeared on DEV Community and was authored by Chris


Print Share Comment Cite Upload Translate Updates
APA

Chris | Sciencx (2023-05-02T16:49:50+00:00) AdaGPT: AI support for Issues and Pull Requests right at your fingertips!. Retrieved from https://www.scien.cx/2023/05/02/adagpt-ai-support-for-issues-and-pull-requests-right-at-your-fingertips/

MLA
" » AdaGPT: AI support for Issues and Pull Requests right at your fingertips!." Chris | Sciencx - Tuesday May 2, 2023, https://www.scien.cx/2023/05/02/adagpt-ai-support-for-issues-and-pull-requests-right-at-your-fingertips/
HARVARD
Chris | Sciencx Tuesday May 2, 2023 » AdaGPT: AI support for Issues and Pull Requests right at your fingertips!., viewed ,<https://www.scien.cx/2023/05/02/adagpt-ai-support-for-issues-and-pull-requests-right-at-your-fingertips/>
VANCOUVER
Chris | Sciencx - » AdaGPT: AI support for Issues and Pull Requests right at your fingertips!. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/05/02/adagpt-ai-support-for-issues-and-pull-requests-right-at-your-fingertips/
CHICAGO
" » AdaGPT: AI support for Issues and Pull Requests right at your fingertips!." Chris | Sciencx - Accessed . https://www.scien.cx/2023/05/02/adagpt-ai-support-for-issues-and-pull-requests-right-at-your-fingertips/
IEEE
" » AdaGPT: AI support for Issues and Pull Requests right at your fingertips!." Chris | Sciencx [Online]. Available: https://www.scien.cx/2023/05/02/adagpt-ai-support-for-issues-and-pull-requests-right-at-your-fingertips/. [Accessed: ]
rf:citation
» AdaGPT: AI support for Issues and Pull Requests right at your fingertips! | Chris | Sciencx | https://www.scien.cx/2023/05/02/adagpt-ai-support-for-issues-and-pull-requests-right-at-your-fingertips/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.