Hubot assigns a random reviewer for pull request on behalf of you.
members of this organization are candidate reviewers.
- open https://github.com/settings/tokens/new
- select scopes:
repo
&public_repo
&read:org
- install this npm package to your hubot repo
npm i --save hubot-reviewer-lotto
- add
"hubot-reviewer-lotto"
to yourexternal-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".
hubot reviewer for <repo> <pull>
- e.g.
hubot reviewer for our-webapp 345
on hipchat
on github
- fork it ( https://github.com/sakatam/hubot-reviewer-lotto/fork )
- create your feature branch (
git checkout -b my-new-feature
) - commit your changes (
git commit -am 'Add some feature'
) - push to the branch (
git push origin my-new-feature
) - create new pull request