Get review suggestions to changes in your git working directory or to any committed changes in your current branch against a target branch and let these suggestions get applied to your code with an informative commit message.
✨ Features
- Get feedback and suggestions with the corresponding line numbers to your git changes in your terminal
- Let your current working directory get reviewed (staged and unstaged changes)
- Let all commits of your current branch get reviewed against any specific target branch
- Let AI-generated review suggestions get applied to your code
- Let a commit message get generated for your current changes
[!NOTE] Review suggestions will only be applied to files without unstaged changes, so that nothing is overridden.
🚀 Usage
rgpt review: Reviews all changes in your working directory and applies review suggestions to related files autonomously.rgpt review --readonly: Reviews all changes without applying the suggestions to the code.rgpt review --guided: User needs to confirm review process for each file. Useful if not all files should get reviewed.rgpt review --target $BRANCH: Reviews all committed changes in your current branch compared to$BRANCH.rgpt review --gpt4: Use GPT-4 model (default is GPT-3.5).rgpt commit: Generates a commit message for your staged changes.
📋 Requirements
- Python >= 3.8
🔧 Installation
Create your personal OpenAI Api key and add it as $OPENAI_API_KEY to your environment with:
export OPENAI_API_KEY=<YOUR_API_KEY>
Install with pipx:
pipx install gitreview-gpt
[!NOTE] It is recommended to use
pipxfor installation, nonetheless it is also possible to usepip.
Release files for gitreview-gpt 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gitreview_gpt-0.1.4.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitreview_gpt-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.4 kB
Release files / gitreview_gpt-0.1.4.tar.gz
| Download URL | gitreview_gpt-0.1.4.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3216fa1bc7bb8a8f66e32b27e2adb8b168808d8bb6e2729db2c9725bde4cd6e0
|
|
BLAKE2b-256 checksum How to use checksums |
d2dfccd0a49cca2efe52875c14aeb2a2d649070e84d2874e9ebc2a74bdab117c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.8.17 Linux/5.15.0-1041-azure
|
Release files / gitreview_gpt-0.1.4-py3-none-any.whl
| Download URL | gitreview_gpt-0.1.4-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a86331c98159aab209cf61fbe56bc4c0d570f0c0542abb07a57de9b90731c3ba
|
|
BLAKE2b-256 checksum How to use checksums |
741b69fa095afb4221bf29c45f86beb28dedac12f60551c8bbf0a36e5b7d2830
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.8.17 Linux/5.15.0-1041-azure
|