Skip to content

Commit

Permalink
Merge pull request #1866 from cenkalti/notes
Browse files Browse the repository at this point in the history
add missing fields in Note struct
  • Loading branch information
svanharmelen committed Jan 17, 2024
2 parents 57c03d9 + 42426a3 commit 63caa48
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions notes.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,18 @@ type Note struct {
WebURL string `json:"web_url"`
} `json:"author"`
System bool `json:"system"`
ExpiresAt *time.Time `json:"expires_at"`
UpdatedAt *time.Time `json:"updated_at"`
CreatedAt *time.Time `json:"created_at"`
NoteableID int `json:"noteable_id"`
NoteableType string `json:"noteable_type"`
UpdatedAt *time.Time `json:"updated_at"`
ExpiresAt *time.Time `json:"expires_at"`
CommitID string `json:"commit_id"`
Position *NotePosition `json:"position"`
NoteableID int `json:"noteable_id"`
NoteableType string `json:"noteable_type"`
ProjectID int `json:"project_id"`
NoteableIID int `json:"noteable_iid"`
Resolvable bool `json:"resolvable"`
Resolved bool `json:"resolved"`
ResolvedAt *time.Time `json:"resolved_at"`
ResolvedBy struct {
ID int `json:"id"`
Username string `json:"username"`
Expand All @@ -68,8 +71,8 @@ type Note struct {
AvatarURL string `json:"avatar_url"`
WebURL string `json:"web_url"`
} `json:"resolved_by"`
ResolvedAt *time.Time `json:"resolved_at"`
NoteableIID int `json:"noteable_iid"`
Confidential bool `json:"confidential"`
Internal bool `json:"internal"`
}

// NotePosition represents the position attributes of a note.
Expand Down

0 comments on commit 63caa48

Please sign in to comment.