hubot-github-pull-requests
v1.3.1
Published
A script for Hubot to show open pull requests on GitHub for repos you own/have access to and care about.
Downloads
6
Maintainers
Readme
hubot-github-pull-requests
A script for Hubot to show open pull requests on GitHub for repos you own/have access to and care about.
Install
Add the node package to the hubot dependencies in package.json
$ npm install hubot-github-pull-requests --save
Add hubot-github-pull-requests to external-scripts.json
["hubot-github-pull-requests"]
Usage
> hubot pr
> # List of Pull Requests from GitHub...
> hubot prs
> # List of Pull Requests from GitHub...
You will need to set a few environment variables:
GITHUB_PRS_GHE_API_URL = # (Optional) If you use a hosted GitHub Enterprise server, this is your v3 API URL. (E.g. github.yourdomain.com/api/v3)
GITHUB_PRS_OAUTH_TOKEN = # (Required) A GitHub OAuth token generated from your account.
GITHUB_PRS_USER = # (Required if GITHUB_PRS_TEAM_ID is not set) A GitHub username.
GITHUB_PRS_TEAM_ID = # (Required if GITHUB_PRS_USER is not set) A GitHub Team ID returned from GitHub's API. Takes precendence over GITHUB_PRS_USER.
GITHUB_PRS_REPO_OWNER_FILTER = # (Optional) A string that contains the names of users you'd like to filter by. (Helpful when you have a lot of forks on your repos that you don't care about.)
For Help Finding a/your GitHub Team ID(s) (thanks @davedash)
http://fabian-kostadinov.github.io/2015/01/16/how-to-find-a-github-team-id/
License
MIT © David Posey