Skip to content

Commit d8b5308

Browse files
committed
update : version 1.1
1 parent d39976f commit d8b5308

File tree

4 files changed

+73
-1
lines changed

4 files changed

+73
-1
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 developerjhp
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

demo.webp

827 KB
Binary file not shown.

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Diffinity",
4-
"version": "1.0",
4+
"version": "1.1",
55
"permissions": ["activeTab", "storage", "scripting"],
66
"host_permissions": [
77
"https://patch-diff.githubusercontent.com/*",

readme.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Diffinity: Get PR Review from LLM in the Simplest Way
2+
3+
![Diffinity Demo](./demo.webp)
4+
5+
Diffinity is a Chrome extension designed to streamline the code review process for GitHub pull requests by automatically fetching the PR diff and preparing a review request in ChatGPT. This extension provides a seamless way to gather and send PR data for analysis and feedback.
6+
7+
## Features
8+
9+
- Adds a "Do Diffinity" button to GitHub pull request pages.
10+
- Fetches the diff data from GitHub PRs.
11+
- Opens a new tab to ChatGPT with the diff data preloaded for review.
12+
- Supports custom review language settings.
13+
14+
## Installation
15+
16+
1. Clone this repository or download the source code as a ZIP file.
17+
2. Open Chrome and navigate to `chrome://extensions/`.
18+
3. Enable "Developer mode" using the toggle in the top right corner.
19+
4. Click "Load unpacked" and select the folder containing the extension files.
20+
21+
## Usage
22+
23+
1. Install the extension.
24+
2. Set the review language by clicking the extension icon and entering your preferred language.
25+
3. Navigate to a GitHub pull request page.
26+
4. Click the "Do Diffinity" button that appears in the pull request header.
27+
5. That's it! The extension will handle the rest and open ChatGPT with the review request.
28+
29+
## Explanation of Key Files
30+
31+
- **background.js**: Contains background event listeners for extension initialization, message handling, and script execution.
32+
- **chatgpt_injector.js**: Injects text into ChatGPT’s input field and simulates a button click to submit the PR review request.
33+
- **content.js**: Injects the "Do Diffinity" button into GitHub PR pages and handles user interactions.
34+
- **popup.html, popup.js, popup.css**: Files for the extension popup interface, allowing users to set their preferred language.
35+
- **manifest.json**: The configuration file defining the extension’s content scripts and background services.
36+
37+
## Contributing
38+
39+
Feel free to fork this repository and submit pull requests. Contributions and feedback are highly appreciated!
40+
41+
## License
42+
43+
This project is licensed under the MIT License.
44+
45+
## Disclaimer
46+
47+
This extension is not affiliated with GitHub or ChatGPT. Use it at your own discretion and ensure compliance with any relevant terms of service.
48+
49+
---
50+
51+
Thank you for using Diffinity. We hope this tool makes your code review process smoother and more efficient!

0 commit comments

Comments
 (0)