Method: Gitlab::Client::Tags#tag

Defined in:
lib/gitlab/client/tags.rb

#tag(project, tag) ⇒ Gitlab::ObjectifiedHash Also known as: repo_tag

Gets information about a repository tag.

Examples:

Gitlab.tag(3, 'api')
Gitlab.repo_tag(5, 'master')

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • tag (String)

    The name of the tag.

Returns:


48
49
50
# File 'lib/gitlab/client/tags.rb', line 48

def tag(project, tag)
  get("/projects/#{url_encode project}/repository/tags/#{url_encode tag}")
end