Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit 63caa48

Browse files
authored
Merge pull request #1866 from cenkalti/notes
add missing fields in Note struct
2 parents 57c03d9 + 42426a3 commit 63caa48

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Diff for: notes.go

+9-6
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,18 @@ type Note struct {
5050
WebURL string `json:"web_url"`
5151
} `json:"author"`
5252
System bool `json:"system"`
53-
ExpiresAt *time.Time `json:"expires_at"`
54-
UpdatedAt *time.Time `json:"updated_at"`
5553
CreatedAt *time.Time `json:"created_at"`
56-
NoteableID int `json:"noteable_id"`
57-
NoteableType string `json:"noteable_type"`
54+
UpdatedAt *time.Time `json:"updated_at"`
55+
ExpiresAt *time.Time `json:"expires_at"`
5856
CommitID string `json:"commit_id"`
5957
Position *NotePosition `json:"position"`
58+
NoteableID int `json:"noteable_id"`
59+
NoteableType string `json:"noteable_type"`
60+
ProjectID int `json:"project_id"`
61+
NoteableIID int `json:"noteable_iid"`
6062
Resolvable bool `json:"resolvable"`
6163
Resolved bool `json:"resolved"`
64+
ResolvedAt *time.Time `json:"resolved_at"`
6265
ResolvedBy struct {
6366
ID int `json:"id"`
6467
Username string `json:"username"`
@@ -68,8 +71,8 @@ type Note struct {
6871
AvatarURL string `json:"avatar_url"`
6972
WebURL string `json:"web_url"`
7073
} `json:"resolved_by"`
71-
ResolvedAt *time.Time `json:"resolved_at"`
72-
NoteableIID int `json:"noteable_iid"`
74+
Confidential bool `json:"confidential"`
75+
Internal bool `json:"internal"`
7376
}
7477

7578
// NotePosition represents the position attributes of a note.

0 commit comments

Comments
 (0)