Commandear is a gem that makes it easy for your projects to "listen" for commands in GitHub's pull requests.
Add this to your Gemfile
gem 'commandear'
...
...
- set `Commandear.command_prefix = 'ok Fourchette: scale all to 1'
Commandear.on_command do |command|
# ...
end
I want this for Fourchette but I also want something similar to Fourchette for my new blogging engine, Vocal. I want to be able, on PRs, to say "ok Vocal, boot instance" and that would update a dummy Rails app, using the PR's code (from a forked repo, usually), run bundle update vocal
, commit stuff, push and tell me the URL to test. Ideally, the app would be deleted after X minutes/hours/days of inactivities not to have useless apps on Heroku for too long. I could also say "ok Vocal, take screenshots" and it would go take screentshots for me. This could be done for a couple of other projects like this...fun stuff? :)