(current: SyncPhase)
| 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) |
no test coverage detected