Files
news.gitea.happylizard.me/bin/gems/octokit-6.1.1/lib/octokit/client/commit_branches.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

21 lines
705 B
Ruby

# frozen_string_literal: true
module Octokit
class Client
# Methods for the Branches for HEAD API
#
# @see https://developer.github.com/v3/repos/commits/
module CommitBranches
# 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 https://developer.github.com/v3/repos/commits/#list-branches-for-head-commit
def commit_branches(repo, sha, options = {})
paginate "#{Repository.path repo}/commits/#{sha}/branches-where-head", options
end
end
end
end