Skip to content

Commit

Permalink
Add "references" to Issue (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmini authored Nov 5, 2024
1 parent fe96001 commit e883f9e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/main/java/org/gitlab4j/api/models/AbstractIssue.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public String toString() {
private String title;
private Integer userNotesCount;
private String webUrl;
private References references;
private Integer weight;
private Boolean discussionLocked;
private TimeStats timeStats;
Expand Down Expand Up @@ -272,6 +273,14 @@ public void setWebUrl(String webUrl) {
this.webUrl = webUrl;
}

public References getReferences() {
return references;
}

public void setReferences(References references) {
this.references = references;
}

public Integer getWeight() {
return weight;
}
Expand Down
7 changes: 6 additions & 1 deletion src/test/resources/org/gitlab4j/api/issue.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@
"id" : 1,
"name" : "Administrator"
},
"references": {
"short": "#1",
"relative": "#1",
"full": "example/example#1"
},
"severity": "UNKNOWN",
"subscribed": false,
"user_notes_count": 1,
"web_url": "http://example.com/example/example/issues/1",
"web_url": "http://example.com/example/example/-/issues/1",
"confidential": false,
"time_stats": {
"time_estimate": 12600,
Expand Down

0 comments on commit e883f9e

Please sign in to comment.