Skip to content

Commit

Permalink
Assign required local variable for GithubStatus#automated_status.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Jan 16, 2013
1 parent 326a8f6 commit 064369b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/github_status_cinch_plugin.rb
Expand Up @@ -17,6 +17,7 @@ def self.commands
timer 900, method: :automated_status
match /github automated status/, method: :automated_status
def automated_status(m=nil)
last_message = get_json_data('https://status.github.com/api/last-message.json')
message = "github status: \x02#{last_message['created_on']}\x02 - \x02#{last_message['status']}\x02"

if last_message != @previous_last_message && !['good','minor'].include?(last_message['status'])
Expand Down

0 comments on commit 064369b

Please sign in to comment.