hubot-github-create-pullrequests
Open Github pull requests with Hubot
Last updated 6 years ago by summera .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-github-create-pullrequests 
SYNC missed versions from official npm registry.

Build Status

Hubot Create Pull Requests

A script to create github pull request with Hubot from existing branches.

Installation

In hubot project repo, run:

npm install hubot-github-create-pullrequests

Then add hubot-github-createpullrequests to your external-scripts.json:

["hubot-github-create-pullrequests"]

Configuration

This package uses the HUBOT_GITHUB_TOKEN environment variable to authenticate with github. This is explained more in githubot.

Acquire a token

If you don't have a token yet, run this:

curl -i https://api.github.com/authorizations -d '{"note":"githubot","scopes":["repo"]}' -u "yourusername"

Enter your Github password when prompted. When you get a response, look for the "token" value.

Hubot Commands

hubot create pr from <user>/<repo>/<branch> [into <base>] ["<body>"]
  • user (required): The github user or org that owns the repo.
  • repo (required): Repository where your branch exists.
  • branch (required): Name of branch.
  • base (optional): Name of branch you would like to request to merge into. Master by default.
  • body (optional): Message to create with pull request. Empty by default.

Current Tags

  • 1.1.1                                ...           latest (6 years ago)

3 Versions

  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |