Skip to content

Instantly share code, notes, and snippets.

@toothrot
Created February 10, 2010 18:12
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save toothrot/300637 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'growl'
require 'lighthouse/console'
Lighthouse.account = "thepoint"
Lighthouse.token = raise("Get your own key")
proj_id = "13151-support"
bins = []
bins << Bin.find(107305, :params => {:project_id => proj_id}) # my tickets bin
bins << Bin.find(62214, :params => {:project_id => proj_id}) # unassigned bin
notification_message = []
bins.each do |bin|
notification_message << "#{bin.tickets.size} -- #{bin.name}"
end
Growl.notify(notification_message.join("\n"), :icon => "/Users/alexrakoczy/firebomb.jpg", :sticky => true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment