MCPcopy Index your code
hub / github.com/coder/mux / parseWorkflowName

Function parseWorkflowName

src/node/services/workflows/workflowDescription.ts:23–29  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

21}
22
23export function parseWorkflowName(source: string): string | null {
24 try {
25 return parseWorkflowMetadataName(parseStaticWorkflowMetadataLiteral(source));
26 } catch {
27 return null;
28 }
29}
30
31export function parseWorkflowMetadataName(rawMetadata: unknown): string | null {
32 if (rawMetadata != null && typeof rawMetadata === "object" && !Array.isArray(rawMetadata)) {

Callers 1

Tested by

no test coverage detected