123456789_123456789_123456789_123456789_123456789_

Module: Octokit::Client::CommitPulls

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/octokit/client/commit_pulls.rb

Overview

Methods for the Commit Pulls API

Instance Method Summary

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:

[ GitHub ]

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

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