From f523e1a73c67d8f1a477a18cc36bdcc5aa40cca0 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 9 Dec 2024 16:10:13 -0800 Subject: [PATCH] commentsNumber: fix mapping --- src/steps/commentsNumber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/commentsNumber.js b/src/steps/commentsNumber.js index 003a803f..f2f18ac2 100644 --- a/src/steps/commentsNumber.js +++ b/src/steps/commentsNumber.js @@ -47,7 +47,7 @@ export default async function commentsNumber ({ reviewThread.comments.nodes[0].author.login === 'github-actions' && reviewThread.comments.nodes[0].body.includes('
Cc ') ) - ) + ).map(reviewThread => reviewThread.comments.nodes[0]) for (const comment of comments) { const category = comment.body.match(categoryRegex)?.[1]