Method: Gitlab::Client::Tags#update_release

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

#update_release(project, tag, description) ⇒ Gitlab::ObjectifiedHash Also known as: repo_update_release

Updates the release notes of a given release. Requires Gitlab >= 8.2.0

Examples:

Gitlab.update_release(3, '1.0.0', 'This is even more ready for production')
Gitlab.repo_update_release(5, '1.0.0', 'This is even more ready for production')

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • tag (String)

    The name of the new tag.

  • description (String)

    Release notes with markdown support

Returns:

[View source]

92
93
94
# File 'lib/gitlab/client/tags.rb', line 92

def update_release(project, tag, description)
  put("/projects/#{url_encode project}/repository/tags/#{url_encode tag}/release", body: { description: description })
end