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

Function getContentTypeChoice

apps/sim/connectors/gitlab/gitlab.ts:208–220  ·  view source on GitHub ↗

* Reads the parsed content-type choice from sourceConfig (defaults to 'both').

(sourceConfig: Record<string, unknown>)

Source from the content-addressed store, hash-verified

206 * Reads the parsed content-type choice from sourceConfig (defaults to 'both').
207 */
208function getContentTypeChoice(sourceConfig: Record<string, unknown>): ContentTypeChoice {
209 const value = typeof sourceConfig.contentTypes === 'string' ? sourceConfig.contentTypes : 'both'
210 if (
211 value === 'repo' ||
212 value === 'wiki' ||
213 value === 'issues' ||
214 value === 'both' ||
215 value === 'all'
216 ) {
217 return value
218 }
219 return 'both'
220}
221
222/**
223 * Standard request headers carrying the Personal Access Token.

Callers 1

gitlab.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected