Module: OnlyofficeGithubHelper::Branches

Included in:
GithubClient
Defined in:
lib/onlyoffice_github_helper/github_client/branches.rb

Overview

Working with branches

Instance Method Summary collapse

Instance Method Details

#branches(repo) ⇒ Array<String>

Get list of branches in repo

Parameters:

  • repo (String)

    to check

Returns:

  • (Array<String>)

    list of branches



9
10
11
# File 'lib/onlyoffice_github_helper/github_client/branches.rb', line 9

def branches(repo)
  Octokit.branches(repo).map(&:name)
end