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

Function nextPhase

apps/sim/connectors/gitlab/gitlab.ts:131–135  ·  view source on GitHub ↗

* Returns the phase following `current` for a choice, or undefined when `current` * is the last active phase.

(current: SyncPhase, choice: ContentTypeChoice)

Source from the content-addressed store, hash-verified

129 * is the last active phase.
130 */
131function nextPhase(current: SyncPhase, choice: ContentTypeChoice): SyncPhase | undefined {
132 const phases = activePhases(choice)
133 const idx = phases.indexOf(current)
134 return idx >= 0 && idx + 1 < phases.length ? phases[idx + 1] : undefined
135}
136
137interface GitLabWikiPage {
138 slug: string

Callers 1

advanceFunction · 0.70

Calls 1

activePhasesFunction · 0.70

Tested by

no test coverage detected