JD Huntington: February 2009 Archives

Bugflow - A lighthouse/github workflow

| | Comments (0) | TrackBacks (0)

I love the integration between github and lighthouse. (If you're not familiar with this, have a look.) However, I always found myself forgetting which ticket I was working on when writing commit messages. At first, I wrote this script just to add the ticket number in the git commit message, but it quickly evolved to help throughout the workflow.

When starting on a new ticket, this script helps by

  • Assigning a ticket to when starting work
  • Creating a local branch with an intelligent name

On completion it will

  • Set the state of the ticket to a user-defined value (through the git commit msg)
  • Clear the active user (also through the git commit msg)

Workflow

Here’s an example of the workflow…

Setup

Install Bugflow

Just grab this script and put it wherever you like. (I prefer ~/bin)

Install Gem

Grab the lighthouse gem from github:

$ gem sources -a http://gems.github.com
$ sudo gem install Caged-lighthouse-api

Project Config

Finally, create a file in the root of your project called .bugflow.yml and add the following data:

Also, it’s a good idea to add this file to your .gitignore.

$ echo ".bugflow.yml" >> .gitignore

Happy hacking!

About this Archive

This page is a archive of recent entries written by JD Huntington in February 2009.

JD Huntington: November 2008 is the previous archive.

JD Huntington: January 2010 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.1