This Google Chrome extension analyzes code differences in pull requests on Bitbucket or Github and provides feedback using ChatGPT by OpenAI. It helps developers identify potential bugs, optimize code, add relevant comments, and improve security.
- Analyze code differences in pull requests on Bitbucket or Github
- Utilize ChatGPT API to identify bugs and optimizations
- Provide suggestions for comments and security improvements
- Seamless integration with the Bitbucket and Github interfaces
- Google Chrome browser
- A Bitbucket or Github account with access to repositories containing pull requests
- An OpenAI account with access to the ChatGPT API
- A ChatGPT API key
- Clone the repository to your local machine:
git clone https://github.com/yourusername/code-analysis-chrome-extension.git
- Open Google Chrome and navigate to chrome://extensions/.
- Enable "Developer mode" in the top-right corner of the page.
- Click the "Load unpacked" button and select the cloned repository folder.
- The extension should now be visible in your extensions list and available for use when browsing Bitbucket and Github.
- Change the name of the
.env.example
file to.env
and add your ChatGPT API key to the file.
- Help finding your ChatGPT API key: https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key
- Navigate to a pull request on Bitbucket or Github.
- The extension will automatically analyze the code differences and provide feedback on potential bugs, optimizations, comments, and security improvements.
- Review the generated feedback and apply the suggested changes to improve your code.
- Getting the diff from GitHub: https://stackoverflow.com/questions/6188591/download-github-pull-request-as-unified-diff
We welcome contributions to improve and expand the functionality of this Chrome extension. To contribute, please follow these steps:
- Fork the repository and create a new branch for your feature or bug fix.
- Make your changes and ensure that your code is properly documented.
- Test your changes thoroughly to ensure that they don't introduce new issues.
- Submit a pull request with a clear description of your changes and any relevant issue numbers.
We appreciate your contributions and will review your pull request as soon as possible.
This Chrome extension uses the ChatGPT API by OpenAI for code analysis and optimization suggestions. The extension is not officially affiliated with or endorsed by OpenAI, Bitbucket or Github.
App icons generated here: https://appicons.ai/app/generator/step1