Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "references" to Issue #1189

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading