From 13944ff276e8183afdeab0bd523a88bfed1feba1 Mon Sep 17 00:00:00 2001 From: ltews Date: Mon, 10 Jul 2023 09:37:07 +1000 Subject: [PATCH] Make comment Author & UpdateAuthor properties pointers --- cloud/issue.go | 4 ++-- onpremise/issue.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cloud/issue.go b/cloud/issue.go index e7db3c73..d445b6be 100644 --- a/cloud/issue.go +++ b/cloud/issue.go @@ -474,9 +474,9 @@ type Comment struct { ID string `json:"id,omitempty" structs:"id,omitempty"` Self string `json:"self,omitempty" structs:"self,omitempty"` Name string `json:"name,omitempty" structs:"name,omitempty"` - Author User `json:"author,omitempty" structs:"author,omitempty"` + Author *User `json:"author,omitempty" structs:"author,omitempty"` Body string `json:"body,omitempty" structs:"body,omitempty"` - UpdateAuthor User `json:"updateAuthor,omitempty" structs:"updateAuthor,omitempty"` + UpdateAuthor *User `json:"updateAuthor,omitempty" structs:"updateAuthor,omitempty"` Updated string `json:"updated,omitempty" structs:"updated,omitempty"` Created string `json:"created,omitempty" structs:"created,omitempty"` Visibility CommentVisibility `json:"visibility,omitempty" structs:"visibility,omitempty"` diff --git a/onpremise/issue.go b/onpremise/issue.go index d1bca7aa..5fd77cb2 100644 --- a/onpremise/issue.go +++ b/onpremise/issue.go @@ -474,9 +474,9 @@ type Comment struct { ID string `json:"id,omitempty" structs:"id,omitempty"` Self string `json:"self,omitempty" structs:"self,omitempty"` Name string `json:"name,omitempty" structs:"name,omitempty"` - Author User `json:"author,omitempty" structs:"author,omitempty"` + Author *User `json:"author,omitempty" structs:"author,omitempty"` Body string `json:"body,omitempty" structs:"body,omitempty"` - UpdateAuthor User `json:"updateAuthor,omitempty" structs:"updateAuthor,omitempty"` + UpdateAuthor *User `json:"updateAuthor,omitempty" structs:"updateAuthor,omitempty"` Updated string `json:"updated,omitempty" structs:"updated,omitempty"` Created string `json:"created,omitempty" structs:"created,omitempty"` Visibility CommentVisibility `json:"visibility,omitempty" structs:"visibility,omitempty"`