* 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)
| 199 | * GitLab accepts a numeric ID or the URL-encoded `group/project` path. |
| 200 | */ |
| 201 | function 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'). |