@@ -151,25 +151,26 @@ type MinimalReactions struct {
151151
152152// MinimalIssue is the trimmed output type for issue objects to reduce verbosity.
153153type MinimalIssue struct {
154- Number int `json:"number"`
155- Title string `json:"title"`
156- Body string `json:"body,omitempty"`
157- State string `json:"state"`
158- StateReason string `json:"state_reason,omitempty"`
159- Draft bool `json:"draft,omitempty"`
160- Locked bool `json:"locked,omitempty"`
161- HTMLURL string `json:"html_url"`
162- User * MinimalUser `json:"user,omitempty"`
163- Labels []string `json:"labels,omitempty"`
164- Assignees []string `json:"assignees,omitempty"`
165- Milestone string `json:"milestone,omitempty"`
166- Comments int `json:"comments,omitempty"`
167- Reactions * MinimalReactions `json:"reactions,omitempty"`
168- CreatedAt string `json:"created_at,omitempty"`
169- UpdatedAt string `json:"updated_at,omitempty"`
170- ClosedAt string `json:"closed_at,omitempty"`
171- ClosedBy string `json:"closed_by,omitempty"`
172- IssueType string `json:"issue_type,omitempty"`
154+ Number int `json:"number"`
155+ Title string `json:"title"`
156+ Body string `json:"body,omitempty"`
157+ State string `json:"state"`
158+ StateReason string `json:"state_reason,omitempty"`
159+ Draft bool `json:"draft,omitempty"`
160+ Locked bool `json:"locked,omitempty"`
161+ HTMLURL string `json:"html_url"`
162+ User * MinimalUser `json:"user,omitempty"`
163+ AuthorAssociation string `json:"author_association,omitempty"`
164+ Labels []string `json:"labels,omitempty"`
165+ Assignees []string `json:"assignees,omitempty"`
166+ Milestone string `json:"milestone,omitempty"`
167+ Comments int `json:"comments,omitempty"`
168+ Reactions * MinimalReactions `json:"reactions,omitempty"`
169+ CreatedAt string `json:"created_at,omitempty"`
170+ UpdatedAt string `json:"updated_at,omitempty"`
171+ ClosedAt string `json:"closed_at,omitempty"`
172+ ClosedBy string `json:"closed_by,omitempty"`
173+ IssueType string `json:"issue_type,omitempty"`
173174}
174175
175176// MinimalPullRequest is the trimmed output type for pull request objects to reduce verbosity.
@@ -218,16 +219,17 @@ type MinimalPRBranchRepo struct {
218219
219220func convertToMinimalIssue (issue * github.Issue ) MinimalIssue {
220221 m := MinimalIssue {
221- Number : issue .GetNumber (),
222- Title : issue .GetTitle (),
223- Body : issue .GetBody (),
224- State : issue .GetState (),
225- StateReason : issue .GetStateReason (),
226- Draft : issue .GetDraft (),
227- Locked : issue .GetLocked (),
228- HTMLURL : issue .GetHTMLURL (),
229- User : convertToMinimalUser (issue .GetUser ()),
230- Comments : issue .GetComments (),
222+ Number : issue .GetNumber (),
223+ Title : issue .GetTitle (),
224+ Body : issue .GetBody (),
225+ State : issue .GetState (),
226+ StateReason : issue .GetStateReason (),
227+ Draft : issue .GetDraft (),
228+ Locked : issue .GetLocked (),
229+ HTMLURL : issue .GetHTMLURL (),
230+ User : convertToMinimalUser (issue .GetUser ()),
231+ AuthorAssociation : issue .GetAuthorAssociation (),
232+ Comments : issue .GetComments (),
231233 }
232234
233235 if issue .CreatedAt != nil {
0 commit comments