Method: Github::Client::GitData::References#get
- Defined in:
- lib/github_api/client/git_data/references.rb
#get(*args) ⇒ Object Also known as: find
Get a reference
The ref in the URL must be formatted as heads/branch, not just branch. For example, the call to get the data for a branch named sc/featureA would be formatted as heads/sc/featureA
59 60 61 62 63 64 65 |
# File 'lib/github_api/client/git_data/references.rb', line 59 def get(*args) arguments(args, required: [:user, :repo, :ref]) validate_reference arguments.ref params = arguments.params get_request("/repos/#{arguments.user}/#{arguments.repo}/git/refs/#{arguments.ref}", params) end |