GitHub bot for chat, code review, and refactoring
Top 75.6% on sourcepulse
This project provides a GitHub App that integrates ChatGPT for automated code review, refactoring, and conversational interaction within GitHub issues and pull requests. It targets developers and teams looking to leverage AI for enhancing their GitHub workflow, offering automated code analysis and assistance directly within their repositories.
How It Works
The bot is built using Probot and the chatgpt-api
. It listens for specific commands like /chatgpt
, /review
, and /refactor
within issue and pull request comments. Upon receiving a command, it interacts with the ChatGPT API to process the request, analyze code snippets, and generate responses or code modifications. This approach allows for seamless integration into existing GitHub workflows without requiring external tools.
Quick Start & Requirements
npm install
npm dev
SESSION_TOKEN
. The private key needs to be base64 encoded.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The bot currently relies on a SESSION_TOKEN
obtained from the ChatGPT website, which may be unstable or subject to change by OpenAI. The README indicates a future switch to the official API, suggesting the current implementation might be transitional.
1 year ago
1 week