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
f58aa3c4
Commit
f58aa3c4
authored
Jul 27, 2019
by
Greg Messner
Browse files
Initial commit (#419).
parent
8cf96eb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/IssueLink.java
0 → 100644
View file @
f58aa3c4
package
org.gitlab4j.api.models
;
import
org.gitlab4j.api.utils.JacksonJson
;
public
class
IssueLink
{
private
Issue
sourceIssue
;
private
Issue
targetIssue
;
public
Issue
getSourceIssue
()
{
return
sourceIssue
;
}
public
void
setSourceIssue
(
Issue
sourceIssue
)
{
this
.
sourceIssue
=
sourceIssue
;
}
public
Issue
getTargetIssue
()
{
return
targetIssue
;
}
public
void
setTargetIssue
(
Issue
targetIssue
)
{
this
.
targetIssue
=
targetIssue
;
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
src/test/resources/org/gitlab4j/api/issue-link.json
0 → 100644
View file @
f58aa3c4
{
"source_issue"
:
{
"id"
:
83
,
"iid"
:
11
,
"project_id"
:
4
,
"created_at"
:
"2016-01-07T12:44:33.959Z"
,
"title"
:
"Issues with auth"
,
"state"
:
"opened"
,
"assignees"
:
[],
"labels"
:
[
"bug"
],
"author"
:
{
"name"
:
"Alexandra Bashirian"
,
"state"
:
"active"
,
"web_url"
:
"https://gitlab.example.com/eileen.lowe"
,
"id"
:
18
,
"username"
:
"eileen.lowe"
},
"updated_at"
:
"2016-01-07T12:44:33.959Z"
,
"subscribed"
:
true
,
"user_notes_count"
:
0
,
"web_url"
:
"http://example.com/example/example/issues/11"
,
"confidential"
:
false
},
"target_issue"
:
{
"id"
:
84
,
"iid"
:
14
,
"project_id"
:
4
,
"created_at"
:
"2016-01-07T12:44:33.959Z"
,
"title"
:
"Issues with auth"
,
"state"
:
"opened"
,
"assignees"
:
[],
"labels"
:
[
"bug"
],
"author"
:
{
"name"
:
"Alexandra Bashirian"
,
"state"
:
"active"
,
"web_url"
:
"https://gitlab.example.com/eileen.lowe"
,
"id"
:
18
,
"username"
:
"eileen.lowe"
},
"updated_at"
:
"2016-01-07T12:44:33.959Z"
,
"subscribed"
:
true
,
"user_notes_count"
:
0
,
"web_url"
:
"http://example.com/example/example/issues/14"
,
"confidential"
:
false
}
}
\ No newline at end of file
src/test/resources/org/gitlab4j/api/linked-issues.json
0 → 100644
View file @
f58aa3c4
[
{
"id"
:
84
,
"iid"
:
14
,
"issue_link_id"
:
1
,
"project_id"
:
4
,
"created_at"
:
"2016-01-07T12:44:33.959Z"
,
"title"
:
"Issues with auth"
,
"state"
:
"opened"
,
"assignees"
:
[],
"labels"
:
[
"bug"
],
"author"
:
{
"name"
:
"Alexandra Bashirian"
,
"state"
:
"active"
,
"web_url"
:
"https://gitlab.example.com/eileen.lowe"
,
"id"
:
18
,
"username"
:
"eileen.lowe"
},
"updated_at"
:
"2016-01-07T12:44:33.959Z"
,
"subscribed"
:
true
,
"user_notes_count"
:
0
,
"web_url"
:
"http://example.com/example/example/issues/14"
,
"confidential"
:
false
}
]
\ No newline at end of file
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