https://github.com/daodao97/git-pr
Help you open the repo pull request url in browser with cmd
https://github.com/daodao97/git-pr
Last synced: 26 days ago
JSON representation
Help you open the repo pull request url in browser with cmd
- Host: GitHub
- URL: https://github.com/daodao97/git-pr
- Owner: daodao97
- License: mit
- Created: 2021-03-09T09:22:39.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-10T06:09:36.000Z (over 1 year ago)
- Last Synced: 2025-04-10T00:53:52.563Z (26 days ago)
- Language: Shell
- Homepage:
- Size: 1.39 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-pr
Type `git pr` to open the repo `pull|merge request url` (GitHub, GitLab, Gitee) in your browser.

## Usage
```sh
# git pr [target_branch]git pr -h
# exmaple
git pr # Open the page for current branch pull request to master branch url in browsergit pr relesse # Open the page for current branch pull request to target branch [release] url in browser
```## Install for ZSH
### [Zinit](https://github.com/zdharma/zinit)
Add `zinit light daodao97/git-pr` to your `.zshrc`, and `source ~/.zshrc`
#### [Antigen](https://github.com/zsh-users/antigen)
Add `antigen bundle daodao97/git-pr` to your `.zshrc` with your other bundle
commands.Antigen will handle cloning the plugin for you automatically the next time you
start zsh, and periodically checking for updates to the git repository. You can
also add the plugin to a running zsh with `antigen bundle daodao97/git-pr`
for testing before adding it to your `.zshrc`.#### [Oh-My-Zsh](http://ohmyz.sh/)
1. `git clone https://github.com/daodao97/git-pr.git $ZSH_CUSTOM/plugins/git-open`
1. Add `git-pr` to your plugin list - edit `~/.zshrc` and change
`plugins=(...)` to `plugins=(... git-pr)`#### [Zgen](https://github.com/tarjoilija/zgen)
Add `zgen load daodao97/git-pr` to your .zshrc file in the same function
you're doing your other `zgen load` calls in. ZGen will take care of cloning
the repository the next time you run `zgen save`, and will also periodically
check for updates to the git repository.#### [zplug](https://github.com/zplug/zplug)
`zplug "daodao97/git-pr", as:plugin`
## Related projects
- [`git-open`](https://github.com/paulirish/git-open) - Open repo website in browser
## License
Copyright Paul Irish Licensed under MIT.