A reviewer lottery script for Lita
Inspired by sakatam/hubot-reviewer-lotto
Add this line to your lita's Gemfile:
gem 'lita-reviewer-lotto'
https://github.com/settings/tokens/new
Select scopes
- repo
- public_repo
- read:org
# lita_config.rb (example)
Lita.configure do |config|
config.handlers.reviewer_lotto.gh_token = ENV["GH_TOKEN"] # String
config.handlers.reviewer_lotto.gh_organization = ENV["GH_ORGANIZATION"] # String
config.handlers.reviewer_lotto.gh_reviewer_team = ENV["GH_REVIEWER_TEAM"] # Integer
end
# on your chat
YOU > @bot reviewer for your_repo 123
BOT > foobar has been assigned for https://github.com/your_org/your_repo/pull/123 as a reviewer
- Fork it ( http://github.com/fukayatsu/lita-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