hubot-github-pr-release
![npm downloads](https://img.shields.io/npm/dm/hubot-github-pr-release.svg)
Create a release pull request on GitHub by using github-pr-release via hubot.
Installation
Install via npm.
$ cd /path/to/hubot
$ npm install --save hubot-github-pr-release
And add to external-scripts.json
.
$ cat external-scripts.json
["hubot-github-pr-release"]
Configuration
$ export HUBOT_RELEASE_GITHUB_TOKEN="github_token_here"
$ export HUBOT_RELEASE_HEAD="staging"
$ export HUBOT_RELEASE_BASE="master"
$ export HUBOT_RELEASE_DEFAULT_OWNER="ttskch"
$ export HUBOT_RELEASE_TEMPLATE_PATH="/path/to/template.mustache"
$ export HUBOT_RELEASE_GITHUB_ENDPOINT="https://api.gihtub.enterprise.com"
$ export HUBOT_RELEASE_MESSAGE_PROCESSING="Please wait a minute..."
Modify template
You can use your own template of the release pull request.
For example, following template uses the author's username instead of the assignee's one of each pull requests in the message of the release pull request.
Release {{version}}
{{#prs}}
- [ ] #{{number}} {{title}} {{#user}}@{{login}}{{/user}}
{{/prs}}
See here to learn more.
Usage
hubot> hubot release ttskch/hubot-github-pr-release
hubot> hubot release hubot-github-pr-release