MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / buildIssueTitle

Function buildIssueTitle

packages/cli/src/utils/feedbackIssue.ts:34–38  ·  view source on GitHub ↗
(rating: number, comment?: string)

Source from the content-addressed store, hash-verified

32}
33
34function 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
40function buildIssueBody(input: IssueInput): string {
41 const comment = input.comment?.trim();

Callers 1

buildIssueUrlFunction · 0.85

Calls 1

truncateFunction · 0.85

Tested by

no test coverage detected