Skip to content

Commit e883f9e

Browse files
authored
Add "references" to Issue (#1189)
1 parent fe96001 commit e883f9e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Diff for: src/main/java/org/gitlab4j/api/models/AbstractIssue.java

+9
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public String toString() {
7373
private String title;
7474
private Integer userNotesCount;
7575
private String webUrl;
76+
private References references;
7677
private Integer weight;
7778
private Boolean discussionLocked;
7879
private TimeStats timeStats;
@@ -272,6 +273,14 @@ public void setWebUrl(String webUrl) {
272273
this.webUrl = webUrl;
273274
}
274275

276+
public References getReferences() {
277+
return references;
278+
}
279+
280+
public void setReferences(References references) {
281+
this.references = references;
282+
}
283+
275284
public Integer getWeight() {
276285
return weight;
277286
}

Diff for: src/test/resources/org/gitlab4j/api/issue.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@
4040
"id" : 1,
4141
"name" : "Administrator"
4242
},
43+
"references": {
44+
"short": "#1",
45+
"relative": "#1",
46+
"full": "example/example#1"
47+
},
4348
"severity": "UNKNOWN",
4449
"subscribed": false,
4550
"user_notes_count": 1,
46-
"web_url": "http://example.com/example/example/issues/1",
51+
"web_url": "http://example.com/example/example/-/issues/1",
4752
"confidential": false,
4853
"time_stats": {
4954
"time_estimate": 12600,

0 commit comments

Comments
 (0)