hubot-github-bot
A hubot script to list and recurrently remind you about open pull requests and pull request assignments.
Last updated 2 years ago by ndaversa .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-github-bot 
SYNC missed versions from official npm registry.

Hubot Github Bot

A hubot script to list and recurrently remind you about open pull requests. Optionally receive direct messages when you are assigned to a pull request in your organization or for a specific repo or set of repos.

###Dependencies

  • coffeescript
  • cron
  • octokat
  • moment
  • underscore
  • fuse.js

###Configuration

  • HUBOT_GITHUB_TOKEN - Github Application Token
  • HUBOT_GITHUB_WEBHOOK_SECRET - Optional, if you are using webhooks and have a secret set this for additional security checks on payload delivery
  • HUBOT_GITHUB_URL - Set this value if you are using Github Enterprise default: https://api.github.com
  • HUBOT_GITHUB_ORG - Github Organization Name (the one in the url)
  • HUBOT_GITHUB_REPOS_MAP eg."{"web":["frontend","web"],"android":["android"],"ios":["ios"],"platform":["web"]}"

Note: As of v3.3 the HUBOT_GITHUB_REPOS_MAP now expects an array for the value in the map to support multiple repos per channel

###Commands

  • hubot github open - Shows a list of open pull requests for the repo of this room
  • hubot github reminder hh:mm - I'll remind about open pull requests in this room at hh:mm every weekday.
  • hubot github list reminders - See all pull request reminders for this room.
  • hubot github reminders in every room - Be nosey and see when other rooms have their reminders set
  • hubot github delete hh:mm reminder - If you have a reminder at hh:mm, I'll delete it.
  • hubot github delete all reminders - Deletes all reminders for this room.

####Notifications via Webhooks In order to receive github notifications you will need to setup a github webhook for either your entire organization or per repository. You can find instructions to do so on Github's website. You will need your hubot to be reachable from the outside world for this to work. GithubBot is listening on /hubot/github-events. Currently the following notifications are available:

  • Pull Request Assignment (please ensure the webhook sends pull request events for this to work)

Note: in order for direct messages (notifications) to work GithubBot attempts to fuzzy match the github name or github login to someone on your team. It has been tested primarily on the Hubot Slack adapter, but it should work elsewhere. If GithubBot cannot find a matching user it drops the notification and logs the failure to the console.

Current Tags

  • 4.2.1                                ...           latest (2 years ago)

33 Versions

  • 4.2.1                                ...           2 years ago
  • 4.2.0                                ...           2 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.4                                ...           3 years ago
  • 4.0.3                                ...           4 years ago
  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.3.2                                ...           4 years ago
  • 3.3.1                                ...           4 years ago
  • 3.3.0                                ...           4 years ago
  • 3.2.0                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.5                                ...           4 years ago
  • 3.0.4                                ...           4 years ago
  • 3.0.3                                ...           4 years ago
  • 3.0.2                                ...           4 years ago
  • 3.0.1                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.4.2                                ...           4 years ago
  • 1.4.1                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.3.1                                ...           5 years ago
  • 1.3.0                                ...           5 years ago
  • 1.2.1                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |