hubot-reviewer-lotto
A reviewer lottery script for Hubot
Last updated 3 years ago by sakatam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-reviewer-lotto 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.8.0                                ...           latest (3 years ago)

18 Versions

  • 0.8.0                                ...           3 years ago
  • 0.7.1                                ...           5 years ago
  • 0.7.0                                ...           5 years ago
  • 0.6.0                                ...           6 years ago
  • 0.5.4                                ...           6 years ago
  • 0.5.3                                ...           6 years ago
  • 0.5.2                                ...           6 years ago
  • 0.5.1                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
  • 0.4.4                                ...           6 years ago
  • 0.4.3                                ...           6 years ago
  • 0.4.2                                ...           6 years ago
  • 0.4.1                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (1)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |