File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/main/java/org/gitlab/api Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -3319,6 +3319,19 @@ public List<GitlabTag> getTags(GitlabProject project) {
3319
3319
return retrieve ().getAll (tailUrl , GitlabTag [].class );
3320
3320
}
3321
3321
3322
+ /**
3323
+ * Get a single repository tag in a specific project
3324
+ *
3325
+ * @param project (required) The ID or URL-encoded path of the project
3326
+ * @param tagName (required) The name of the tag
3327
+ * @return the found git tag object
3328
+ * @throws IOException on gitlab api call error
3329
+ */
3330
+ public GitlabTag getTag (GitlabProject project , String tagName ) throws IOException {
3331
+ String tailUrl = GitlabProject .URL + "/" + project .getId () + GitlabTag .URL + "/" + tagName ;
3332
+ return retrieve ().to (tailUrl , GitlabTag .class );
3333
+ }
3334
+
3322
3335
/**
3323
3336
* Create tag in specific project
3324
3337
*
You can’t perform that action at this time.
0 commit comments