Coder Social home page Coder Social logo

hubot-github-pr-release's Introduction

hubot-github-pr-release

npm version npm downloads

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

# required
$ export HUBOT_RELEASE_GITHUB_TOKEN="github_token_here"

# optional
$ export HUBOT_RELEASE_HEAD="staging" # defaults to "master"
$ export HUBOT_RELEASE_BASE="master" # defaults to "release"
$ export HUBOT_RELEASE_DEFAULT_OWNER="ttskch"
$ export HUBOT_RELEASE_TEMPLATE_PATH="/path/to/template.mustache" # absolute path only
$ export HUBOT_RELEASE_GITHUB_ENDPOINT="https://api.gihtub.enterprise.com" # defaults to "https://api.github.com"
$ export HUBOT_RELEASE_MESSAGE_PROCESSING="Please wait a minute..." # defaults to "Now processing..."

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

# Create or update a release pull request
hubot> hubot release ttskch/hubot-github-pr-release

# If HUBOT_RELEASE_DEFAULT_OWNER is set you can omit owner
hubot> hubot release hubot-github-pr-release

hubot-github-pr-release's People

Contributors

ttskch avatar polidog avatar neosnathanlau avatar jellybob avatar kozyty avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.