MCPcopy Index your code
hub / github.com/git-bug/git-bug / queryTimeline

Method queryTimeline

bridge/github/import_mediator.go:178–196  ·  view source on GitHub ↗
(ctx context.Context, nid githubv4.ID, cursor githubv4.String)

Source from the content-addressed store, hash-verified

176}
177
178func (mm *importMediator) queryTimeline(ctx context.Context, nid githubv4.ID, cursor githubv4.String) (*timelineItemsConnection, bool) {
179 vars := newTimelineVars()
180 vars["gqlNodeId"] = nid
181 if cursor == "" {
182 vars["timelineAfter"] = (*githubv4.String)(nil)
183 } else {
184 vars["timelineAfter"] = cursor
185 }
186 query := timelineQuery{}
187 if err := mm.gh.queryImport(ctx, &query, vars, mm.importEvents); err != nil {
188 mm.err = err
189 return nil, false
190 }
191 connection := &query.Node.Issue.TimelineItems
192 if len(connection.Nodes) <= 0 {
193 return nil, false
194 }
195 return connection, true
196}
197
198func (mm *importMediator) fillCommentEdits(ctx context.Context, item *timelineItem) {
199 // Here we are only concerned with timeline items of type issueComment.

Callers 1

fillTimelineEventsMethod · 0.95

Calls 2

newTimelineVarsFunction · 0.85
queryImportMethod · 0.80

Tested by

no test coverage detected