Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Review This!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 templates
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.markdown
Octocat-spinner-32 config.ru
Octocat-spinner-32 reviewthis.rb
README.markdown

reviewthis

reviewthis is a simple Sinatra app that parses github commit messages and sends email notifications based on their contents. We use it to request code reviews from other team members.

Usage

If a commit message includes the hash #reviewthis, any github user (signified by @username) will get an email (if they have a public email address in their github profile). Also, any email address included gets an email as well. An example commit:

git commit -am 'I fixed that one nasty bug. #reviewthis @supermatter adifferentperson@supermatter.com'

To use it, just set a Post-Receive URL for your repo to http://reviewth.is/ and You're all set!.

Roll Your Own

If you want to roll your own, reviewthis is set up to be easily deployed to heroku. Here's how.

Heroku Deployment

Note this assumes you have the heroku gem installed and configured).

git clone git@github.com:supermatter/reviewthis.git
cd reviewthis/
heroku create
heroku addons:add sendgrid:starter
git push heroku master

Now, just take the app name that heroku created for you, and set it as a Post-Receive URL for your repo. You're all set!

Non-Heroku Deployment

If you don't want to use Heroku, you'll have to adjust the smtp config values in the production environment. Otherwise, it should work out of the box.

Requirements

Besides Sinatra, reviewthis requires

Note that the sendgrid add-on limits you to 200 messages per day.

Something went wrong with that request. Please try again.