Discussion represents a GitHub Discussion as a domain object. Fields carry no JSON tags; serialization is handled by ExportData.
| 7 | // Discussion represents a GitHub Discussion as a domain object. |
| 8 | // Fields carry no JSON tags; serialization is handled by ExportData. |
| 9 | type Discussion struct { |
| 10 | ID string |
| 11 | Number int |
| 12 | Title string |
| 13 | Body string |
| 14 | URL string |
| 15 | Closed bool |
| 16 | StateReason string |
| 17 | Author DiscussionActor |
| 18 | Category DiscussionCategory |
| 19 | Labels []DiscussionLabel |
| 20 | Answered bool |
| 21 | AnswerChosenAt time.Time |
| 22 | AnswerChosenBy *DiscussionActor |
| 23 | Comments DiscussionCommentList |
| 24 | ReactionGroups []ReactionGroup |
| 25 | CreatedAt time.Time |
| 26 | UpdatedAt time.Time |
| 27 | ClosedAt time.Time |
| 28 | Locked bool |
| 29 | } |
| 30 | |
| 31 | // ExportData returns a map of the requested fields for JSON output. |
| 32 | // Because domain types carry no JSON struct tags, each field is mapped |
nothing calls this directly
no outgoing calls
no test coverage detected