https://github.com/valkyrienyanko/autopr
A tool that automates GitHub pull requests.
https://github.com/valkyrienyanko/autopr
automation cli git github pull-requests
Last synced: about 2 months ago
JSON representation
A tool that automates GitHub pull requests.
- Host: GitHub
- URL: https://github.com/valkyrienyanko/autopr
- Owner: valkyrienyanko
- Created: 2025-05-07T23:03:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-14T21:23:26.000Z (about 1 year ago)
- Last Synced: 2025-06-25T06:15:33.074Z (about 1 year ago)
- Topics: automation, cli, git, github, pull-requests
- Language: C
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AutoPR
## What is this?
A tool that automates GitHub pull requests. For GitHub repo owners who are tired of manually setting up pull requests.
With the default config values, this is what this tool is automating for you.
```
git checkout -b __new_feature
git push --set-upstream origin __new_feature
gh pr create --base main --head __new_feature --title \"TITLE\" --body \"DESCRIPTION\"
gh pr merge --MERGE_TYPE
git checkout main
git branch -d __new_feature
git push origin --delete __new_feature
git fetch origin
git reset --hard origin/main
```
I realize after making this that this handles a very specific scenario but you know what hey I had fun doing it because I got more experience learning C.
## Requirements
- Windows 64 Bit (currently not supported for Mac or Linux)
- https://git-scm.com/
- https://cli.github.com/
## How to Use
1. Download the [latest release](https://github.com/valkyrienyanko/AutoPR/releases/latest)
2. Run the exe from anywhere on your pc
3. Navigate to options and set your repository path
4. Manually create some commits (but do not push)
5. Use the exe to create and merge a pull request for those commits (make sure you are up-to-date with main branch before you do this)
## Options
- [x] Set merge type
- [x] Disable title prompt
- [x] Disable description prompt
- [x] Disable delete feature branch
- [x] Disable merge pull request
## Known Issues
- If PR title (or commit message if this is being used as PR title) contains any special characters like '&', the branch will fail to be created and the program will end
- If the user puts in a malformed repository path, the program may crash