module Octokit::Client::CommitBranches
def commit_branches(repo, sha, options = {})
- See: https://developer.github.com/v3/repos/commits/#list-branches-for-head-commit -
Returns:
-
(Array)- List of branches
Parameters:
-
sha(String) -- The SHA of the commit whose branches will be fetched -
repo(Integer, String, Hash, Repository) -- A GitHub repository
def commit_branches(repo, sha, options = {}) paginate "#{Repository.path repo}/commits/#{sha}/branches-where-head", options end