Skip to content

Instantly share code, notes, and snippets.

@austenito
Created June 18, 2012 05:46
Show Gist options
  • Save austenito/2947047 to your computer and use it in GitHub Desktop.
Save austenito/2947047 to your computer and use it in GitHub Desktop.
fix
def self.get_all(user, authentication_token)
if user
github_client(authentication_token).get_repos_from(user["octochat_user_id"]).collect do |room|
{:owner => room.data.owner, :name => room.data.name, :id => room.data.id, :role => room.data.role }
#:branches => github_client(authentication_token).get_branches_from(room.data.owner, room.data.name).collect(&:data).collect(&:name) }
end
else
[]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment