From 922b809433241676f0732d7c652860b7a119380a Mon Sep 17 00:00:00 2001 From: Duc Trung LE Date: Tue, 5 Oct 2021 19:55:52 +0200 Subject: [PATCH] Bot skip Binder comment --- .github/workflows/benchmark-report.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmark-report.yml b/.github/workflows/benchmark-report.yml index df43aa628..52b3dfd43 100644 --- a/.github/workflows/benchmark-report.yml +++ b/.github/workflows/benchmark-report.yml @@ -59,7 +59,8 @@ jobs: }) // Find any comment already made by the bot. - const botComment = comments.find(comment => comment.user.id === 41898282) + const botComments = comments.filter(comment => comment.user.id === 41898282) + const botComment = botComments.find(cm => !cm.body.includes('Try it on binder') ) if (botComment) { await github.issues.updateComment({ owner: context.repo.owner,