MCPcopy
hub / github.com/cli/cli / Discussion

Struct Discussion

pkg/cmd/discussion/client/types.go:9–29  ·  view source on GitHub ↗

Discussion represents a GitHub Discussion as a domain object. Fields carry no JSON tags; serialization is handled by ExportData.

Source from the content-addressed store, hash-verified

7// Discussion represents a GitHub Discussion as a domain object.
8// Fields carry no JSON tags; serialization is handled by ExportData.
9type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected