A reviewer lottery script for Hubot
CoffeeScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
index.coffee
package.json

README.md

hubot-reviewer-lotto

Hubot assigns a random reviewer for pull request on behalf of you.

preparation

create a team in your github organization

image

members of this organization are candidate reviewers.

grab a github access token

installation

  • install this npm package to your hubot repo
    • npm i --save hubot-reviewer-lotto
  • add "hubot-reviewer-lotto" to your external-scripts.json
  • set the following env vars on heroku
    `HUBOT_GITHUB_TOKEN` required. the access token you created above.
    `HUBOT_GITHUB_ORG` required. name of your github organization.
    `HUBOT_GITHUB_REVIEWER_TEAM` required. the reviewer **team id** you created above.
    just in case, here is [a nice tutorial on how to get it](http://fabian-kostadinov.github.io/2015/01/16/how-to-find-a-github-team-id/).
    `HUBOT_GITHUB_WITH_AVATAR` optional. assignee's avatar image will be posted if this var is set to "1".

usage

  • hubot reviewer for <repo> <pull>
  • e.g. hubot reviewer for our-webapp 345

example

on hipchat

image

on github

image

get involved

  1. fork it ( https://github.com/sakatam/hubot-reviewer-lotto/fork )
  2. create your feature branch (git checkout -b my-new-feature)
  3. commit your changes (git commit -am 'Add some feature')
  4. push to the branch (git push origin my-new-feature)
  5. create new pull request