Skip to content

Instantly share code, notes, and snippets.

@kmiyake
Created February 2, 2013 18:57
Show Gist options
  • Save kmiyake/4698797 to your computer and use it in GitHub Desktop.
Save kmiyake/4698797 to your computer and use it in GitHub Desktop.
# vendor/bundle/ruby/1.9.1/gems/github_api-0.8.9/lib/github_api/repos.rb
327 response = if (user_name = params.delete("user"))
328 get_request("/users/#{user_name}/repos", params)
329 elsif (org_name = params.delete("org"))
330 get_request("/orgs/#{org_name}/repos", params)
331 # elsif authenticated? # コメントアウト
332 # # For authenticated user # コメントアウト
333 # get_request("/user/repos", params) # コメントアウト
334 else
335 get_request("/repositories", params)
336 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment