Sha256: 59964b639a0d36d63577a0976c3e116256cf86d60cfd2345620f3b613f5b3e3c

Contents?: true

Size: 379 Bytes

Versions: 10

Compression:

Stored size: 379 Bytes

Contents

module Octokit
  class Client
    module Commits

      def commits(repo, branch="master", options={})
        get("commits/list/#{Repository.new(repo)}/#{branch}", options)['commits']
      end
      alias :list_commits :commits

      def commit(repo, sha, options={})
        get("commits/show/#{Repository.new(repo)}/#{sha}", options)['commits']
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
octokit-0.6.2 lib/octokit/client/commits.rb
hybridgroup-octokit-0.6.3 lib/octokit/client/commits.rb
hybridgroup-octokit-0.6.2 lib/octokit/client/commits.rb
hybridgroup-octokit-0.6.1 lib/octokit/client/commits.rb
xn-octokit-0.6.1 lib/octokit/client/commits.rb
octokit-0.6.1 lib/octokit/client/commits.rb
octokit-0.6.0 lib/octokit/client/commits.rb
octokit-0.5.2 lib/octokit/client/commits.rb
octokit-0.5.1 lib/octokit/client/commits.rb
octokit-0.5.0 lib/octokit/client/commits.rb