Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-gitlab-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
java-gitlab-api
Commits
e29b3a30
Commit
e29b3a30
authored
Jan 18, 2016
by
Tim Olshansky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #108 from pavelbely/master
Added Tag and Release models
parents
dac8d3f3
c59a52f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
GitlabRelease.java
src/main/java/org/gitlab/api/models/GitlabRelease.java
+28
-0
GitlabTag.java
src/main/java/org/gitlab/api/models/GitlabTag.java
+54
-0
No files found.
src/main/java/org/gitlab/api/models/GitlabRelease.java
0 → 100644
View file @
e29b3a30
package
org
.
gitlab
.
api
.
models
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
public
class
GitlabRelease
{
@JsonProperty
(
"tag_name"
)
private
String
tagName
;
@JsonProperty
(
"description"
)
private
String
description
;
public
String
getTagName
()
{
return
tagName
;
}
public
void
setTagName
(
String
tagName
)
{
this
.
tagName
=
tagName
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
}
src/main/java/org/gitlab/api/models/GitlabTag.java
0 → 100644
View file @
e29b3a30
package
org
.
gitlab
.
api
.
models
;
import
org.gitlab.api.models.GitlabBranchCommit
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
public
class
GitlabTag
{
public
final
static
String
URL
=
"/repository/tags/"
;
@JsonProperty
(
"commit"
)
private
GitlabBranchCommit
commit
;
@JsonProperty
(
"release"
)
private
GitlabRelease
release
;
@JsonProperty
(
"name"
)
private
String
name
;
@JsonProperty
(
"message"
)
private
String
message
;
public
GitlabBranchCommit
getCommit
()
{
return
commit
;
}
public
void
setCommit
(
GitlabBranchCommit
commit
)
{
this
.
commit
=
commit
;
}
public
GitlabRelease
getRelease
()
{
return
release
;
}
public
void
setRelease
(
GitlabRelease
release
)
{
this
.
release
=
release
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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