Skip to content

sakatam/hubot-reviewer-lotto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A reviewer lottery script for Hubot

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •