Skip to content

Commit 09bb061

Browse files
committed
Fix bug
1 parent 2e8369c commit 09bb061

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/task-checklist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const run = () => {
1212
const body = github.context.payload.pull_request?.body;
1313
if (!body) return;
1414

15-
const matches = body.matchAll(INCOMPLETE_TASKS_REGEX).map((match) => match[1]);
15+
const matches = [];
16+
body.matchAll(INCOMPLETE_TASKS_REGEX).forEach((match) => matches.push(match[1]));
1617

1718
if (!matches.length) {
1819
return;

0 commit comments

Comments
 (0)