Created
April 27, 2010 17:03
-
-
Save orta/380995 to your computer and use it in GitHub Desktop.
Git Achievements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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