Method: Gitlab::Client::Tags#create_tag
- Defined in:
- lib/gitlab/client/tags.rb
#create_tag(project, tag_name, ref, message = '', description = nil) ⇒ Gitlab::ObjectifiedHash Also known as: repo_create_tag
Creates a new project repository tag.
34 35 36 |
# File 'lib/gitlab/client/tags.rb', line 34 def create_tag(project, tag_name, ref, = '', description = nil) post("/projects/#{url_encode project}/repository/tags", body: { tag_name: tag_name, ref: ref, message: , release_description: description }) end |