Module: Octokit::Client::CommitBranches
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/octokit/client/commit_branches.rb |
Overview
Methods for the Branches for HEAD API
Instance Method Summary
-
#commit_branches(repo, sha, options = {}) ⇒ Array
List branches for a single HEAD commit.
Instance Method Details
#commit_branches(repo, sha, options = {}) ⇒ Array
List branches for a single HEAD commit
# File 'lib/octokit/client/commit_branches.rb', line 15
def commit_branches(repo, sha, = {}) paginate "#{Repository.path repo}/commits/#{sha}/branches-where-head", end