Skip to content

Commit

Permalink
fix: newline in details summary
Browse files Browse the repository at this point in the history
  • Loading branch information
baked-dev committed Aug 22, 2024
1 parent 42889ee commit f417e53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128000,7 +128000,7 @@ async function createOrReplaceComment({ octokit, issueNumber, title, shaInfo, ap
issueNumber,
text: title,
});
const body = formatTextFragments(title, '<details>', '<summary>', shaInfo, '</summary>', appRoutesTable, pagesRoutesTable, dynamicTable, '</details>', !(pagesRoutesTable === null || pagesRoutesTable === void 0 ? void 0 : pagesRoutesTable.trim()) && !(dynamicTable === null || dynamicTable === void 0 ? void 0 : dynamicTable.trim()) && !(appRoutesTable === null || appRoutesTable === void 0 ? void 0 : appRoutesTable.trim())
const body = formatTextFragments(title, '<details>', `<summary>${shaInfo}</summary>`, appRoutesTable, pagesRoutesTable, dynamicTable, '</details>', !(pagesRoutesTable === null || pagesRoutesTable === void 0 ? void 0 : pagesRoutesTable.trim()) && !(dynamicTable === null || dynamicTable === void 0 ? void 0 : dynamicTable.trim()) && !(appRoutesTable === null || appRoutesTable === void 0 ? void 0 : appRoutesTable.trim())
? FALLBACK_COMPARISON_TEXT
: null);
if (existingComment) {
Expand Down
4 changes: 1 addition & 3 deletions src/comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export async function createOrReplaceComment({
const body = formatTextFragments(
title,
'<details>',
'<summary>',
shaInfo,
'</summary>',
`<summary>${shaInfo}</summary>`,
appRoutesTable,
pagesRoutesTable,
dynamicTable,
Expand Down

0 comments on commit f417e53

Please sign in to comment.