From 2217686b993c412c20fbcfabf9a478024296ec3a Mon Sep 17 00:00:00 2001 From: Guy Zylberberg Date: Thu, 13 Oct 2022 11:18:23 +0300 Subject: [PATCH] Restore user type verification to bot comment --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b113bee..a2777cb 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ steps: issue_number: context.issue.number, }) const botComment = comments.find(comment => { - return comment.body.includes('Terraform Format and Style') + return comment.user.type === 'Bot' && comment.body.includes('Terraform Format and Style') }) // 2. Prepare format of the comment