Method: Github::Client::Repos::Branches#get

Defined in:
lib/github_api/client/repos/branches.rb

#get(*args) ⇒ Object Also known as: find

Get branch

Examples:

github = Github.new
github.repos.branches.get 'user-name', 'repo-name', 'branch-name'
github.repos.branches.get user: 'user-name', repo: 'repo-name', branch: 'branch-name'
github.repos(user: 'user-name', repo: 'repo-name', branch: 'branch-name').branches.get


41
42
43
44
45
# File 'lib/github_api/client/repos/branches.rb', line 41

def get(*args)
  arguments(args, required: [:user, :repo, :branch])

  get_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}", arguments.params)
end