hubot-gh-release-pr

0.1.3 • Public • Published

hubot-gh-release-pr

A hubot script to create GitHub's PR for release

See src/gh-release-pr.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-gh-release-pr --save

Then add hubot-gh-release-pr to your external-scripts.json:

["hubot-gh-release-pr"]

How it works

  1. Ask hubot to create PR
  2. hubot create PR via GitHub API.
  3. The default head branch is master, base branch would be that you specified.

Examples

user1>> hubot release <repo-name> <base-branch>
user1>> hubot release test-repo production
user1>> hubot release test-repo staging
user1>> hubot release test-repo edge

Configuration:

Required ENVs:

  • GH_RELEASE_PR_TOKEN
  • GH_RELEASE_PR_USER

Optional ENVs:

  • GH_RELEASE_PR_CUSTOM_ENDPOINT
  • GH_RELEASE_PR_GITHUB_DEBUG
  • GH_RELEASE_PR_GITHUB_HOST
  • GH_RELEASE_PR_GITHUB_PATH_PREFIX
  • GH_RELEASE_PR_GITHUB_PATH_PROTOCOL

Customize Branch

Readme

Keywords

Package Sidebar

Install

npm i hubot-gh-release-pr

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • banyan