Skip to content

Instantly share code, notes, and snippets.

@orta
Created April 27, 2010 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save orta/380995 to your computer and use it in GitHub Desktop.
Save orta/380995 to your computer and use it in GitHub Desktop.
Git Achievements
# Add this to line 86 on git-achievements
# ruby basecamp.rb "`git config user.name`" "$@" "$2"
# then create a file called basecamp.rb with the rest of this file in it
#!/usr/bin/env ruby
require 'rubygems' rescue nil
require 'broach'
@username = ARGV[0]
@achievement = ARGV[1]
@description = ARGV[2]
@roomname = "room"
# Add your Basecamp username and your API token here
Broach.settings = {
'account' => '',
'token' => '',
'use_ssl' => true
}
Broach.speak(@roomname, @username + " achieved " + @achievement + " because they " + @description)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment