0.0
No commit activity in last 3 years
No release in over 3 years
If you submit a Pull Request to a wrong branch on GitHub you can use this gem to change it
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.8.7, ~> 0.8
>= 3.1.0, ~> 3.1

Runtime

 Project Readme

Right Branch

Gem version Build Status

Currently GitHub does not support switching the target branch of a Pull Request. This tool helps to do that in case a PR is submitted against a wrong branch.

Getting started

Install gem:

$ gem install right_branch

Usage:

$ right_branch [options]
    -u, --username USERNAME          Username
    -r, --repository REPOSITORY      Repository
    -b, --new-branch NEW_BRANCH      New branch
    -p, --pull-request PULL_REQUEST  Pull request
    -t, --access-token ACCESS_TOKEN  Access token
        --password PASSWORD          Password

You can also use environment variables to set default configuration values.

  $ export RIGHT_BRANCH_USERNAME=your_default_username
  $ export RIGHT_BRANCH_REPOSITORY=your_default_repository
  $ export RIGHT_BRANCH_ACCESS_TOKEN=your_default_access_token

Acess token instead of username and password

You can avoid having to type your username and password by providing an access token generated by GitHub.
If you specify it with the --access-token option or have it defined as a RIGHT_BRANCH_ACCESS_TOKEN envrionment variable, it will be used as you authentication method.
You can create access tokens through your GitHub Account Settings.