MCPcopy
hub / github.com/openclaw/clawsweeper / labelNames

Function labelNames

src/clawsweeper.ts:2936–2945  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

2934}
2935
2936function labelNames(value: unknown): string[] {
2937 if (!Array.isArray(value)) return [];
2938 return value
2939 .map((label) => {
2940 if (typeof label === "string") return label;
2941 const name = asRecord(label).name;
2942 return typeof name === "string" ? name : null;
2943 })
2944 .filter((name): name is string => Boolean(name));
2945}
2946
2947function normalizeAuthorAssociation(value: unknown): string {
2948 return typeof value === "string" && value.trim() ? value.trim().toUpperCase() : "NONE";

Callers 2

compactIssueFunction · 0.70
linkedPullRequestLabelsFunction · 0.70

Calls 1

asRecordFunction · 0.70

Tested by

no test coverage detected