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

Function activePhases

apps/sim/connectors/gitlab/gitlab.ts:119–125  ·  view source on GitHub ↗

* Returns the ordered list of active sync phases for a content-type choice.

(choice: ContentTypeChoice)

Source from the content-addressed store, hash-verified

117 * Returns the ordered list of active sync phases for a content-type choice.
118 */
119function activePhases(choice: ContentTypeChoice): SyncPhase[] {
120 const phases: SyncPhase[] = []
121 if (choice === 'repo' || choice === 'all') phases.push('repo')
122 if (choice === 'wiki' || choice === 'both' || choice === 'all') phases.push('wiki')
123 if (choice === 'issues' || choice === 'both' || choice === 'all') phases.push('issues')
124 return phases
125}
126
127/**
128 * Returns the phase following `current` for a choice, or undefined when `current`

Callers 2

nextPhaseFunction · 0.70
gitlab.tsFile · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected