Github pull requests merge command line tool
npm install @egis/github-pullrequests-merge-helper[![NPM info][nodei.co]][npm-url]





This module is a CLI tool that
* search for a last green (re CI) pull request having specfied pattern in its title for a given repo
* show its diff and ask user confirmation to merge it
* merge the pull request
This module plays perfectly to merge pull requests created by
semantic-dependents-updates-github or
Greenkeeper - that's why we wanted to create it in first place.
npm install -g @egis/github-pullrequests-merge-helper
`Usage
* Create a GitHub token to be used by github-pullrequests-merge-helper and put it to GH_TOKEN env variable.
You can also take (any of) GH_TOKEN created by https://github.com/semantic-release/semantic-release setup: it will
print it if you choose 'Other' CI instead of Travis.
* Run it:
`
github-pullrequests-merge-helper git@github.com:artemv/generator-ruby-starter-kit.git --pattern="Update\s.+\sto\sversion" --ci-context="continuous-integration"
``MIT License 2016 © Artem Vasiliev
[nodei.co]: https://nodei.co/npm/@egis/github-pullrequests-merge-helper.png
[npm-url]: https://npmjs.org/package/@egis/github-pullrequests-merge-helper