Skip to content

Commit

Permalink
Again
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Apr 9, 2024
1 parent db8d5f1 commit 8fd4f6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29092,16 +29092,14 @@ function getTodoIfFound(line) {
return matches[0][1];
}
function generateComment(newTodos, removedTodos) {
let comment = '```[tasklist]';
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';
for (const todo of removedTodos) {
comment += `- [x] ${todo}\n`;
}
comment += '```';
console.log('Comment:', comment);
return comment;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,14 @@ function getTodoIfFound(line: string): string {
}

function generateComment(newTodos: string[], removedTodos: string[]): string {
let comment = '```[tasklist]'
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'
for (const todo of removedTodos) {
comment += `- [x] ${todo}\n`
}
comment += '```'

console.log('Comment:', comment)
return comment
Expand Down

0 comments on commit 8fd4f6d

Please sign in to comment.