Sha256: 6f24df786c4cd3c98ba2878c46a5ee607a4ac49611e56f62ef0b989ddb7e0477
Contents?: true
Size: 825 Bytes
Versions: 14
Compression:
Stored size: 825 Bytes
Contents
module Octokit class Client module Commits def commits(repo, branch="master", options={}) options = { :per_page => 35, :sha => branch }.merge options get("/repos/#{Repository.new(repo)}/commits", options, 3) end alias :list_commits :commits def commit(repo, sha, options={}) get("/repos/#{Repository.new(repo)}/commits/#{sha}", options, 3) end def list_commit_comments(repo, options={}) get("/repos/#{Repository.new(repo)}/comments", options, 3) end def commit_comments(repo, sha, options={}) get("/repos/#{Repository.new(repo)}/commits/#{sha}/comments", options, 3) end def commit_comment(repo, id, options={}) get("/repos/#{Repository.new(repo)}/comments/#{id}", options, 3) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems