MCPcopy Create free account
hub / github.com/cli/cli / CurrentUserComments

Method CurrentUserComments

api/queries_comments.go:18–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (cs Comments) CurrentUserComments() []Comment {
19 var comments []Comment
20 for _, c := range cs.Nodes {
21 if c.ViewerDidAuthor {
22 comments = append(comments, c)
23 }
24 }
25 return comments
26}
27
28type Comment struct {
29 ID string `json:"id"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected