#pull-request #gitlab #github #repository #bitbucket #gitea #merge-request

bin+lib gr-bin

Interact with remote repositories like you interact with git

9 releases

0.2.1 Jul 28, 2023
0.2.0 May 29, 2023
0.1.5 Mar 22, 2023

#259 in Authentication

Download history 4/week @ 2024-02-24 5/week @ 2024-03-09 8/week @ 2024-03-16 41/week @ 2024-03-30 11/week @ 2024-04-06

52 downloads per month

MIT license

155KB
4K SLoC

gr

Interact with remote repositories like you interact with git

Features

  • Login with Github (cloud or Enterprise), GitLab (cloud or self-hosted), Bitbucket and Gitea
  • Create new pull request with only a title
  • Read, create and fork repositories
  • Read, list and open existing pull requests in the browser
  • Approve, merge and decline pull requests
  • With git integration (pull, branch change)

And it's all from the terminal!

Installation

You can install with cargo, cargo-binstall or npm:

# Any one of these is good
cargo install gr-bin
cargo binstall gr-bin
npm install --global gr-bin

If all went well, you should have gr installed:

gr --version

Usage

gr is similar to git, that it looks at your current directory, and reads the information from it. To start, move to a local git repo, and login to the remote (if you only want to try, replace gr with npx gr-bin):

cd /path/to/repo
gr login

Create pull request on current branch:

gr pr create -m "PR title"

Get information about the open PRs:

gr pr list

Merge the PR on the current branch:

gr pr merge --delete

For more information, print the help with gr --help.

Dependencies

~7–21MB
~283K SLoC