MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / normalizeEnabledWorkflows

Function normalizeEnabledWorkflows

src/utils/project-config.ts:157–174  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

155}
156
157function normalizeEnabledWorkflows(value: unknown): string[] {
158 if (value == null) return [];
159 if (Array.isArray(value)) {
160 const normalized = value
161 .filter((name): name is string => typeof name === 'string')
162 .map((name) => name.trim().toLowerCase())
163 .filter(Boolean);
164 return normalized;
165 }
166 if (typeof value === 'string') {
167 const normalized = value
168 .split(',')
169 .map((name) => name.trim().toLowerCase())
170 .filter(Boolean);
171 return normalized;
172 }
173 return [];
174}
175
176function normalizeCustomWorkflows(value: unknown): Record<string, string[]> {
177 if (!isPlainObject(value)) {

Callers 3

loadProjectConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected