Skip to content

Commit 473e3a9

Browse files
authored
Merge pull request #995 from trungleduc/bugfix/bot-comment
Bot skips Binder badge comment
2 parents e99355f + 922b809 commit 473e3a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/benchmark-report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
})
6060
6161
// Find any comment already made by the bot.
62-
const botComment = comments.find(comment => comment.user.id === 41898282)
62+
const botComments = comments.filter(comment => comment.user.id === 41898282)
63+
const botComment = botComments.find(cm => !cm.body.includes('Try it on binder') )
6364
if (botComment) {
6465
await github.issues.updateComment({
6566
owner: context.repo.owner,

0 commit comments

Comments
 (0)