(body: string)
| 85 | } |
| 86 | |
| 87 | export 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 | |
| 96 | function optionalGhJson(path: string, jq: string): string { |
| 97 | try { |
no test coverage detected