Skip to content

Commit

Permalink
add drop down 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 94b4b53
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/github/review-pull-request.ts
Original file line number Diff line number Diff line change
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 94b4b53

Please sign in to comment.