(rating: number, comment?: string)
| 32 | } |
| 33 | |
| 34 | function buildIssueTitle(rating: number, comment?: string): string { |
| 35 | const firstLine = comment?.split("\n")[0]?.trim(); |
| 36 | if (!firstLine) return `Render feedback (rating ${rating}/5)`; |
| 37 | return `[feedback] ${truncate(firstLine, TITLE_MAX)}`; |
| 38 | } |
| 39 | |
| 40 | function buildIssueBody(input: IssueInput): string { |
| 41 | const comment = input.comment?.trim(); |
no test coverage detected