Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avaterclasher/pr-agent
https://github.com/avaterclasher/pr-agent
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/avaterclasher/pr-agent
- Owner: AvaterClasher
- License: mit
- Created: 2024-01-16T19:53:00.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-10T13:17:28.000Z (7 months ago)
- Last Synced: 2024-06-10T15:11:13.923Z (7 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PR - AGENT
AI sends pull requests for features you request in natural language
## Usage
```bash
python pr.py -h
usage: pr.py [-h] -f FILE -i INSTRUCTION [-r REPO] [-d] [-pr]Edit a section of code, PR with changes.
optional arguments:
-h, --help show this help message and exit
-f FILE, --file FILE location of a file
-i INSTRUCTION, --instruction INSTRUCTION
instruction on how to edit the file
-r REPO, --repo REPO location to git repo
-d, --diff show diff
-pr, --pull-request add change, commit, push and raise a PR
```## Example
```bash
OPENAI_KEY="" GH_TOKEN="" python pr.py -f examples/bug.py -i "Rewrite the given code and fix any bugs in the program." -d --pr
```> Please replace the OPENAI key and GH_TOKEN with your own.
Here is a real PR opened by this above command: https://github.com/AvaterClasher/PR-agent/pull/1