Method: Gitlab::Client::ProjectReleases#project_release

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

#project_release(project, tag_name) ⇒ Gitlab::ObjectifiedHash

Gets a Release by a tag name

Examples:

Gitlab.project_release(5, 'v0.1')

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • tag_name (String)

    The tag where the release will be created from..

Returns:


26
27
28
# File 'lib/gitlab/client/project_releases.rb', line 26

def project_release(project, tag_name)
  get("/projects/#{url_encode project}/releases/#{tag_name}")
end