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

Function parseCoAuthors

src/commit-sweeper.ts:87–94  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

85}
86
87export function parseCoAuthors(body: string): string[] {
88 const coAuthors: string[] = [];
89 for (const match of body.matchAll(/^Co-authored-by:\s*(.+?)\s*$/gim)) {
90 const value = stripEmailIdentity(match[1]?.trim() ?? "");
91 if (value && !coAuthors.includes(value)) coAuthors.push(value);
92 }
93 return coAuthors;
94}
95
96function optionalGhJson(path: string, jq: string): string {
97 try {

Callers 2

commitMetadataFunction · 0.85

Calls 1

stripEmailIdentityFunction · 0.70

Tested by

no test coverage detected