pull request tool for generating pull requests on demand via command line
Install hub via instructions in readme https://github.com/github/hub
npm install -g pullquester
Ensure that hub is installed and you have provided credentials to it. Hub will ask for credentials the first time it needs them. http://hub.github.com
In order to get hub to ask you for credentials run the following
Move to root directory of the repo you wish to add the pull request configuration to and run
Follow the prompts to initialize the tool
NOTE: When providing credentials, if you have Two-Factor Auth enabled, authentication will fail. You may optionally provide the special username
<token> which will change the auth type to
token. This will expect your password to be a GitHub API token with at least
org:read scope enabled.
Custom questions can be added by adding Inquirer question configs to the pullrequest.json config file.
answers are added to the config in the template.
From command line, simply run
Ensure your branch is pushed, and you are currently in the branch you want
pulled. Then just run
pull and follow the promps.
pull [team] [-d]
Create a pull request for the current branch. Branch must not have any pending changes and must be pushed up to the remote.
-d, --draft(optional) - Use this flag to create the pull request as a draft.
pull- Starts prompts to create a pull request for the current branch. Uses default configuration.
pull myteam- Starts prompts to create a pull request for the current branch using team configuration for
myteaminstead of default configuration.
pull init [team]
Create or update pullquester configuration. A
team may be specified to allow per-team configuration.
pull init- creates/updates default pullquester configuration for the current repository.
pull init myteam- creates/updates pullquester configuration for team
Updates the pullquester config files if required.
Runs an installer script to install the
hub command on your system.