hubot-deploy-builder
v0.4.0
Published
This plugin make pull request from develop to master, and it summarize pull requests which is merged to develop branch. So, you can see a difference between develop and master and you can judge whether it should be merged to master or not.
Downloads
4
Readme
hubot-deploy-builder
This plugin make pull request from develop to master, and it summarize pull requests which is merged to develop branch. So, you can see a difference between develop and master and you can judge whether it should be merged to master or not.
Installation
Add hubot-deploy-builder to your package.json
"dependencies": {
"hubot-deploy-builder": ">=0.1.0"
}
Add hubot-deploy-builder to your external-scripts.json
["hubot-deploy-builder"]
Run npm install
Settings for GitHub
Set these parameters for your environmental variable.
- HUBOT_GITHUB_TOKEN (required)
Set your GitHub access token.
- HUBOT_GITHUB_USER (required)
Set your GitHub user name.
- HUBOT_GITHUB_ORG (required)
Set your GitHub organization name.
- HUBOT_BRANCH_FROM (optional)
A branch which will be merged to HUBOT_BRANCH_TO. If omitted, "develop" is used.
- HUBOT_BRANCH_TO (optional)
A branch which will merge HUBOT_BRANCH_FROM. If omitted, "master" is used.
- HUBOT_PR_EXISTS_MESSAGE (optional)
A message in case a pull request is already exists.
- HUBOT_DEPLOY_MESSAGE (optional)
A message when a pull request is created.
- HUBOT_NO_DIFFERENCE_MESSAGE (optional)
A message in case there is no difference between two branches.
- HUBOT_PR_EXISTS_MESSAGE (optional)
A message in case a pull request is already exists.
Usage
hubot deploy [your service]
Your bot returns url of pull request and create summary!
If the pull request already exists, it updates summary. If there is no difference between develop and master branch, it returns error message.