Sha256: 298228d80d62c1a8798f6303daa7c80d0518f11936d9de7949790596bdc924fc

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 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)['commit']
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
octokit-0.4.1 lib/octokit/client/commits.rb
octokit-0.4.0 lib/octokit/client/commits.rb