March 4, 2007...2:18 pm

Twittering Subversion Updates

Jump to Comments

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.

2 Comments

  • Interesting idea. Did you get it to work in the end? If you have any example Twitter accounts where I can see what the messages looks like, that would be great.

    I think this could be nice for open source projects, where everyone can follow development (if they want to), but maybe a bit more difficult for closed-source commercial projects (for obvious reasons).

  • Yes, it works. You can use it for closed-source commercial projects - you’ll have to change your twitter account to be private though. Here’s a sample output:

    SVN: Rev. 819 by cyu “show unconfigured tag count on home page ” (1 change(s)) 09:39 PM July 14, 2008 from web

    I think there are other scripts out there that will do more if you search for it.

Leave a Reply