Don't Forget to Plant It!

Twittering Subversion Updates

Inspired by this workstreaming post on WWD, I thought it would be a great if I could use Twitter as a way to keep track my current yet-to-be-released project. Twitter is a pretty good fit for workstreaming because it constrains you to a maximum number of characters – if you’re doing something that requires more than that, it really should be in posted in a more formalized medium, such as in an email, blog, or Backpack. For the sake of the people reading your workstream, posts to be short and to the point.

So the first thing I wanted to try is to post Subversion commits Twitter. An initial Google search pointed me to this post about using rake to post to Twitter, but I think having to use rake to do your commits is very inconvenient, so I decided to write it as an Subversion post-commit hook instead. Fortunately, I found this script which posts SVN updates to Basecamp, which got me started. Here’s the final script.

So what’s next? How about:

  • Update Capistrano to post deploy events.
  • Post updates to Backpack, Writeboards, or Basecamp
  • Post updates on important application events and/or errors

Granted, this isn’t exactly workstreaming – I could update the hook to make posts based on the committer (any takers?), but I think this is good enough. Unfortunately, I can’t link to what the output of the script looks like because I’m posting to protected Twitter accounts, but if you look at the script it’s pretty basic message.

Comments