Module: Octokit::Client::CommitPulls

Included in:
Octokit::Client
Defined in:
lib/octokit/client/commit_pulls.rb

Overview

Methods for the Commit Pulls API

Instance Method Summary collapse

Instance Method Details

#commit_pulls(repo, sha, options = {}) ⇒ Array

List pulls for a single commit

Parameters:

  • repo (Integer, String, Hash, Repository)

    A GitHub repository

  • sha (String)

    The SHA of the commit whose pulls will be fetched

Returns:

  • (Array)

    List of commit pulls

See Also:



15
16
17
# File 'lib/octokit/client/commit_pulls.rb', line 15

def commit_pulls(repo, sha, options = {})
  paginate "#{Repository.path repo}/commits/#{sha}/pulls", options
end