Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
5949bc05
Commit
5949bc05
authored
Dec 29, 2018
by
Greg Messner
Browse files
Added overloaded creatTag() method.
parent
ab292a6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/TagsApi.java
View file @
5949bc05
...
@@ -117,7 +117,22 @@ public class TagsApi extends AbstractApi {
...
@@ -117,7 +117,22 @@ public class TagsApi extends AbstractApi {
}
}
/**
/**
* Creates a tag on a particular ref of the given project. A message and release notes are optional.
* Creates a tag on a particular ref of the given project.
*
* <pre><code>GitLab Endpoint: POST /projects/:id/repository/tags</code></pre>
*
* @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
* @param tagName The name of the tag Must be unique for the project
* @param ref the git ref to place the tag on
* @return a Tag instance containing info on the newly created tag
* @throws GitLabApiException if any exception occurs
*/
public
Tag
createTag
(
Object
projectIdOrPath
,
String
tagName
,
String
ref
)
throws
GitLabApiException
{
return
(
createTag
(
projectIdOrPath
,
tagName
,
ref
,
null
,
(
String
)
null
));
}
/**
* Creates a tag on a particular ref of the given project with optional message and release notes.
*
*
* <pre><code>GitLab Endpoint: POST /projects/:id/repository/tags</code></pre>
* <pre><code>GitLab Endpoint: POST /projects/:id/repository/tags</code></pre>
*
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment