Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guangzhengli/gh-qpr
Create PR with labels quickly! No need to manually create a new branch to create PR, everything is automatic.
https://github.com/guangzhengli/gh-qpr
clli command-line gh-extension git github quick quickly shell
Last synced: 25 days ago
JSON representation
Create PR with labels quickly! No need to manually create a new branch to create PR, everything is automatic.
- Host: GitHub
- URL: https://github.com/guangzhengli/gh-qpr
- Owner: guangzhengli
- License: mit
- Created: 2023-07-06T12:36:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-24T11:38:47.000Z (about 1 year ago)
- Last Synced: 2024-07-30T18:43:50.673Z (3 months ago)
- Topics: clli, command-line, gh-extension, git, github, quick, quickly, shell
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# How to use gh qpr to create a pull request with labels quickly
## Why create this extension
Recently, I had a requirement to use Git to submit a PR to the remote branch with the same name on GitHub, and also add some labels to the PR.
I needed to manually create a new branch, create a PR, add tags, merge the PR, delete temporary branches, return to the original branch and pull code. It was too cumbersome. So I created this extension to simplify the process.
## Use
```bash
gh qpr
```First, it will create a new branch with rondom uuid name and push it to remote.
Then create a PR with labels and auto merge.
Finally, it will delete the local and origin temporary branch, go back to the original branch and pull the latest code.
The default labels are empty. You can change it by setting the environment variable `gh_qpr_labels`.
## 1. Install the gh command
```bash
brew install gh
```## 2. Login to GitHub with account
```bash
gh auth login
```## 3. Download the gh-qpr extension
```bash
gh extension install guangzhengli/gh-qpr
```## 4. Add the shell script environment to your path (Optional)
replace the `migration,need review` with your labels.
```bash
vim ~/.zshrc
``````bash
export gh_qpr_labels="migration,need review"
``````bash
source ~/.zshrc
```## 5. How to use
```bash
gh qpr
```