Method: Github::Client::Repos#tags

Defined in:
lib/github_api2/client/repos.rb

#tags(*args) ⇒ Object Also known as: list_tags, repo_tags, repository_tags

List tags

Examples:

github = Github.new
github.repos.tags 'user-name', 'repo-name'
github.repos.tags 'user-name', 'repo-name' { |tag| ... }


440
441
442
443
444
445
446
# File 'lib/github_api2/client/repos.rb', line 440

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

  response = get_request("/repos/#{arguments.user}/#{arguments.repo}/tags", arguments.params)
  return response unless block_given?
  response.each { |el| yield el }
end