{"id":16363766,"url":"https://github.com/guangzhengli/gh-qpr","last_synced_at":"2026-05-09T19:44:33.737Z","repository":{"id":179156939,"uuid":"663043206","full_name":"guangzhengli/gh-qpr","owner":"guangzhengli","description":"Create PR with labels quickly! No need to manually create a new branch to create PR, everything is automatic.","archived":false,"fork":false,"pushed_at":"2023-10-24T11:38:47.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T14:29:08.917Z","etag":null,"topics":["clli","command-line","gh-extension","git","github","quick","quickly","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guangzhengli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-06T12:36:35.000Z","updated_at":"2023-07-06T14:13:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"a450f5d6-28fc-412e-959e-838994c5ffed","html_url":"https://github.com/guangzhengli/gh-qpr","commit_stats":null,"previous_names":["guangzhengli/gh-qpr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guangzhengli%2Fgh-qpr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guangzhengli%2Fgh-qpr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guangzhengli%2Fgh-qpr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guangzhengli%2Fgh-qpr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guangzhengli","download_url":"https://codeload.github.com/guangzhengli/gh-qpr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239786208,"owners_count":19696770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clli","command-line","gh-extension","git","github","quick","quickly","shell"],"created_at":"2024-10-11T02:28:33.063Z","updated_at":"2026-02-02T11:30:18.372Z","avatar_url":"https://github.com/guangzhengli.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to use gh qpr to create a pull request with labels quickly\n\n## Why create this extension\n\nRecently, 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.\n\nI 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.\n\n## Use\n\n```bash\ngh qpr\n```\n\nFirst, it will create a new branch with rondom uuid name and push it to remote. \n\nThen create a PR with labels and auto merge. \n\nFinally, it will delete the local and origin temporary branch, go back to the original branch and pull the latest code.\n\nThe default labels are empty. You can change it by setting the environment variable `gh_qpr_labels`.\n\n\n## 1. Install the gh command\n\n```bash\nbrew install gh\n```\n\n## 2. Login to GitHub with account\n\n```bash\ngh auth login\n```\n\n## 3. Download the gh-qpr extension\n\n```bash\ngh extension install guangzhengli/gh-qpr\n```\n\n## 4. Add the shell script environment to your path (Optional)\n\nreplace the `migration,need review` with your labels.\n\n```bash\nvim ~/.zshrc\n```\n\n```bash\nexport gh_qpr_labels=\"migration,need review\"\n```\n\n```bash\nsource ~/.zshrc\n```\n\n## 5. How to use\n\n```bash\ngh qpr\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguangzhengli%2Fgh-qpr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguangzhengli%2Fgh-qpr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguangzhengli%2Fgh-qpr/lists"}