Project

git-pr

0.0
No commit activity in last 3 years
No release in over 3 years
git-pr facilitates GitHub pull requests
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

~> 2.6
~> 1.0
 Project Readme

Git::Pr

Build Status Code Climate Dependency Status Gem Version

git-pr facilitates GitHub pull requests.

Installation

Add this line to your application's Gemfile:

gem 'git-pr'

And then execute:

$ bundle

Or install it yourself as:

$ gem install git-pr

Configuration

Setup a personal access token and configure your git for github:

$ git config --global github.user your_github_user_name
$ git config --global github.token your_github_personal_access_token

To use a private GitHub Enterprise installation:

$ git config --global github.apiEndpoint https://my.server/api/v3

Usage

List pull requests:

$ git pr list                # open pull requests for the active repository
$ git pr list --all          # open pull requests for all my user and
                             # organization repositories

You can also configure repository profiles and use those to query multiple repositories at once:

$ git config --global --add pr.repository_profile.work org/one
$ git config --global --add pr.repository_profile.work org/two
$ git pr list --profile work # open pull requests for 'org/one', 'org/two'

Submit a pull request for the current branch:

$ git pr submit --title "my title" --message "longer description"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request