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

Function encodeProjectId

apps/sim/connectors/gitlab/gitlab.ts:201–203  ·  view source on GitHub ↗

* Returns the encoded project identifier (numeric ID or URL-encoded path). * GitLab accepts a numeric ID or the URL-encoded `group/project` path.

(project: unknown)

Source from the content-addressed store, hash-verified

199 * GitLab accepts a numeric ID or the URL-encoded `group/project` path.
200 */
201function encodeProjectId(project: unknown): string {
202 return encodeURIComponent(String(project ?? '').trim())
203}
204
205/**
206 * Reads the parsed content-type choice from sourceConfig (defaults to 'both').

Callers 1

gitlab.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected