From e883f9ef3eb981b58bd1f278086fb7296f31a12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bresson?= Date: Tue, 5 Nov 2024 11:55:28 +0100 Subject: [PATCH] Add "references" to Issue (#1189) --- src/main/java/org/gitlab4j/api/models/AbstractIssue.java | 9 +++++++++ src/test/resources/org/gitlab4j/api/issue.json | 7 ++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gitlab4j/api/models/AbstractIssue.java b/src/main/java/org/gitlab4j/api/models/AbstractIssue.java index a96ddbc8..33e16cab 100644 --- a/src/main/java/org/gitlab4j/api/models/AbstractIssue.java +++ b/src/main/java/org/gitlab4j/api/models/AbstractIssue.java @@ -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; @@ -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; } diff --git a/src/test/resources/org/gitlab4j/api/issue.json b/src/test/resources/org/gitlab4j/api/issue.json index 51d44b77..d90cde0b 100644 --- a/src/test/resources/org/gitlab4j/api/issue.json +++ b/src/test/resources/org/gitlab4j/api/issue.json @@ -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,