Skip to content

Commit 0287ee5

Browse files
authored
Merge pull request #756 from ityoung/feat/add-missing-attribute-to-note-class
fix: add missing attribute `resolved_at` to `Note` class
2 parents e90e8ec + ccd43b9 commit 0287ee5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/main/java/org/gitlab4j/api/models/Note.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public String toString() {
9797
private Boolean resolved;
9898
private Boolean resolvable;
9999
private Participant resolvedBy;
100+
private Date resolvedAt;
100101
private Type type;
101102

102103
private Position position;
@@ -245,6 +246,14 @@ public void setResolvedBy(Participant resolvedBy) {
245246
this.resolvedBy = resolvedBy;
246247
}
247248

249+
public Date getResolvedAt() {
250+
return resolvedAt;
251+
}
252+
253+
public void setResolvedAt(Date resolvedAt) {
254+
this.resolvedAt = resolvedAt;
255+
}
256+
248257
public Type getType() {
249258
return type;
250259
}

src/test/resources/org/gitlab4j/api/note.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
"web_url": "https://gitlab.example.com/pipin"
1313
},
1414
"created_at": "2016-04-06T16:51:53.239Z",
15+
"updated_at": "2021-09-14T09:03:50.221Z",
16+
"resolvable": true,
17+
"resolved": true,
18+
"resolved_at": "2021-09-14T09:03:50.221Z",
1519
"system": false,
1620
"noteable_id": 52,
1721
"noteable_type": "Snippet",

0 commit comments

Comments
 (0)