https://github.com/knutwalker/git-coprs
Checkout a Github PR with fuzzy selection
https://github.com/knutwalker/git-coprs
Last synced: 4 months ago
JSON representation
Checkout a Github PR with fuzzy selection
- Host: GitHub
- URL: https://github.com/knutwalker/git-coprs
- Owner: knutwalker
- License: mit
- Created: 2023-01-04T19:17:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T17:24:01.000Z (almost 2 years ago)
- Last Synced: 2026-01-17T18:38:19.964Z (5 months ago)
- Language: Rust
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-coprs
Checkout a Github PR with fuzzy selection
Requires the following binaries:
- https://github.com/cli/cli
- https://github.com/junegunn/fzf
# Install
```
make install
```
On macOS, you might need to install a new make, e.g. via homebrew:
```
gmake install
```
Alternatively, install via cargo
```
cargo install --locked --git https://github.com/knutwalker/git-coprs
```
## MSRV
This crate requires at least Rust `1.57.0`.
# Usage
Basic usage:
```
git coprs
```
Can optionally provide a query that will be filtering the result
```
git coprs 1337
```
The order depends on your account, which can be provided.
```
git coprs --me=superuser
```
The default can be baked into the binary when building
```
GH_USER=superuser make install
```
Otherwise, the gh api is queried for the user that is authenticated.