MCPcopy Index your code
hub / github.com/simstudioai/sim / advance

Function advance

apps/sim/connectors/gitlab/gitlab.ts:633–637  ·  view source on GitHub ↗
(current: SyncPhase)

Source from the content-addressed store, hash-verified

631
632 /** Cursor that advances to the first page of the phase after `current`, if any. */
633 const advance = (current: SyncPhase): { nextCursor?: string; hasMore: boolean } => {
634 const next = nextPhase(current, choice)
635 if (!next) return { hasMore: false }
636 return { nextCursor: encodeCursor({ phase: next, issuePage: 1 }), hasMore: true }
637 }
638
639 if (state.phase === 'repo') {
640 const ref = await resolveRef(sourceConfig, syncContext, apiBase, encodedProject, accessToken)

Callers 1

gitlab.tsFile · 0.85

Calls 2

nextPhaseFunction · 0.70
encodeCursorFunction · 0.70

Tested by

no test coverage detected