Skip to content

Commit

Permalink
feat: add functionality to review-pull-request.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Apr 16, 2024
1 parent f091b69 commit 0ddd4cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/github/review-pull-request.ts
Expand Up @@ -39,10 +39,16 @@ export function buildSummaryComment(invalidHunks: Map<string, Hunk[]>): string {
return '';
}
return (
'<details>' +
'<summary>' +
'Some suggestions could not be made:\n' +
'</summary>' +
'\n\n' + //a blank line is required to display markdown in html
Array.from(invalidHunks, ([filename, hunks]) =>
fileErrorMessage(filename, hunks)
).join('\n')
).join('\n') +
'\n\n' +
'</details>'
);
}

Expand Down

0 comments on commit 0ddd4cd

Please sign in to comment.