A script for Hubot to show open pull requests on GitHub for repos you own/have access to and care about.
Add the node package to the hubot dependencies in
$ npm install hubot-github-pull-requests --save
Add hubot-github-pull-requests to
> 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.)
MIT © David Posey