module Octokit::Client::CommitBranches

Methods for the Branches for HEAD API

@see developer.github.com/v3/repos/commits/

Public Instance Methods

commit_branches(repo, sha, options = {}) click to toggle source

List branches for a single HEAD commit

@param repo [Integer, String, Hash, Repository] A GitHub repository @param sha [String] The SHA of the commit whose branches will be fetched @return [Array] List of branches @see developer.github.com/v3/repos/commits/#list-branches-for-head-commit

# File lib/octokit/client/commit_branches.rb, line 15
def commit_branches(repo, sha, options = {})
  paginate "#{Repository.path repo}/commits/#{sha}/branches-where-head", options
end