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

Method queryIssue

bridge/github/import_mediator.go:248–265  ·  view source on GitHub ↗
(ctx context.Context, cursor githubv4.String)

Source from the content-addressed store, hash-verified

246}
247
248func (mm *importMediator) queryIssue(ctx context.Context, cursor githubv4.String) (*issueConnection, bool) {
249 vars := newIssueVars(mm.owner, mm.project, mm.since)
250 if cursor == "" {
251 vars["issueAfter"] = (*githubv4.String)(nil)
252 } else {
253 vars["issueAfter"] = cursor
254 }
255 query := issueQuery{}
256 if err := mm.gh.queryImport(ctx, &query, vars, mm.importEvents); err != nil {
257 mm.err = err
258 return nil, false
259 }
260 connection := &query.Repository.Issues
261 if len(connection.Nodes) <= 0 {
262 return nil, false
263 }
264 return connection, true
265}
266
267func reverse(eds []userContentEdit) chan userContentEdit {
268 ret := make(chan userContentEdit)

Callers 1

fillImportEventsMethod · 0.95

Calls 2

newIssueVarsFunction · 0.85
queryImportMethod · 0.80

Tested by

no test coverage detected