Skip to content

Commit c64d631

Browse files
jtpiomeeseeksmachine
authored andcommitted
Backport PR voila-dashboards#995: Bot skips Binder badge comment
1 parent 441b04a commit c64d631

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)