Skip to content

Commit

Permalink
Make headline bold
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Apr 9, 2024
1 parent d3c413b commit 194d355
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29092,11 +29092,11 @@ function getTodoIfFound(line) {
return matches[0][1];
}
function generateComment(newTodos, removedTodos) {
let comment = 'New TODOs found in this PR:\n';
let comment = '**New TODOs found in this PR:**\n';
for (const todo of newTodos) {
comment += `- [ ] ${todo}\n`;
}
comment += '\nSolved TODOs found in this PR:\n';
comment += '\n**Solved TODOs found in this PR:**\n';
for (const todo of removedTodos) {
comment += `- [x] ${todo}\n`;
}
Expand All @@ -29120,7 +29120,7 @@ function commentPr(octokit, comment, headSha, todoCount, doneCount) {
const existingComment = comments.find(entry => {
var _a, _b;
return ((_a = entry.user) === null || _a === void 0 ? void 0 : _a.login) === 'github-actions[bot]' &&
((_b = entry.body) === null || _b === void 0 ? void 0 : _b.startsWith('New TODOs found in this PR:'));
((_b = entry.body) === null || _b === void 0 ? void 0 : _b.startsWith('**New TODOs found in this PR:**'));
});
// If the comment exists, update it; otherwise, create a new comment
if (existingComment) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ function getTodoIfFound(line: string): string {
}

function generateComment(newTodos: string[], removedTodos: string[]): string {
let comment = 'New TODOs found in this PR:\n'
let comment = '**New TODOs found in this PR:**\n'
for (const todo of newTodos) {
comment += `- [ ] ${todo}\n`
}
comment += '\nSolved TODOs found in this PR:\n'
comment += '\n**Solved TODOs found in this PR:**\n'
for (const todo of removedTodos) {
comment += `- [x] ${todo}\n`
}
Expand Down Expand Up @@ -129,7 +129,7 @@ async function commentPr(
const existingComment = comments.find(
entry =>
entry.user?.login === 'github-actions[bot]' &&
entry.body?.startsWith('New TODOs found in this PR:')
entry.body?.startsWith('**New TODOs found in this PR:**')
)

// If the comment exists, update it; otherwise, create a new comment
Expand Down

0 comments on commit 194d355

Please sign in to comment.