Method: Janky::GitHub::API#commit
- Defined in:
- lib/janky/github/api.rb
#commit(nwo, sha) ⇒ Object
59 60 61 62 63 64 65 |
# File 'lib/janky/github/api.rb', line 59 def commit(nwo, sha) path = build_path("repos/#{nwo}/commits/#{sha}") request = Net::HTTP::Get.new(path) request.basic_auth(@user, @password) http.request(request) end |