Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4d62251caa
Fetching contributors…


Cannot retrieve contributors at this time

file 83 lines (68 sloc) 3.202 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Snitch by John Nunemaker</title>
<link rel="stylesheet" href="css/common.css" type="text/css" />
<div id="wrapper">
<div id="header">
<p>Drop dead easy subversion commit notifications.</p>

<ul id="nav">
<li><a href="snitch/">Docs</a></li>
<li><a href="">Rubyforge Page</a></li>

<div id="content">
<p>Snitch is an subversion post-commit service integration helper. I just made that up. Subversion has a post-commit hook which is executed each time you commit a change to a repository. Snitch makes it really easy to hook into the post-commit and send the commit message along with the files changed to various services on the web. </p>
<p>Currently, snitch works with <a href="">campfire</a> and <a href="">twitter</a>. I'll be adding in SMS, email, some day but feel free to do it yourself and send me a patch.</p>

<p><img src="images/campfire.gif" alt="Campfire Snitch Screenshot" /></p>
<p><img src="images/twitter.gif" alt="Twitter Snitch Screenshot" /></p>

<li>sudo gem install hpricot</li>
<li>sudo gem install twitter tinder snitch</li>
<p>Create a configuration file (default is /home/deploy/.snitch) that looks like the following (be sure to fill in all the values). Be sure that none of the tabs from below get stay in the config file. It gets parse by yaml so formatting is important.</p>
<pre><code># what is the location of svnlook
# you can find this on *nix boxes by typing: which svnlook
svnlook: /usr/bin/svnlook
# what services would you like to send commit messages to?
    :room: Development
    :password: </code></pre>
<p>Create or edit the post-commit file inside your repository to look like the following. Be sure to edit the CONFIG_FILE variable to wherever you created your config file in step 3.</p>
snitch $REPOS $REV $CONFIG_FILE 2> /tmp/snitch</code></pre>

<p>Please leave all support requests and suggestions at the <a href="">google group</a>.</p>
<div id="footer">
<p>Created by <a href="">John Nunemaker</a> (with ideas from <a href="">Bill Harle</a> and <a href="">Chas Grundy</a>)</a></p>
<script src="" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-85301-8";
Something went wrong with that request. Please try again.