Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github-pr-release

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-pr-release

Create a release pull request by Github API

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.1K
increased by916.17%
Maintainers
1
Weekly downloads
 
Created
Source

github-pr-release

Create a release pull request by using Github API. In fact, this is a Node.js port of git-pr-release.

  • No dependency on git. You can easily deploy it to Heroku etc.
  • Fast because it uses only Github API.
  • Written in ES6 using 6to5.

Gyazo

Usage

release(config = {})

Create a release pull request and return Promise.

var release = require('git-pr-release');

release().then(function () {
  // success
}).catch(function () {
  // nice catch!
});

Configuration

Prepare a config file in your working directory: .github-pr-release.json

{
  "repo": "your/repository",
  "token": "github token",
  "branch": {
    "production": "production",
    "staging": "master"
  }
}

or pass a config object to release().

release({
  repo: 'your/repository',
  token: 'github token'
})

Example

hubot

release = require('github-pr-release')
module.exports = (robot) ->
  robot.respond /release/i, (msg) ->
    msg.send '(salute)'
    release()

Hack

Edit index.es6 and run

npm run build

License

MIT

FAQs

Package last updated on 26 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc