(ctx context.Context, nid githubv4.ID, cursor githubv4.String)
| 176 | } |
| 177 | |
| 178 | func (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 | |
| 198 | func (mm *importMediator) fillCommentEdits(ctx context.Context, item *timelineItem) { |
| 199 | // Here we are only concerned with timeline items of type issueComment. |
no test coverage detected