Skip to content

Benchmarks workflow overwrites the Binder badge comment #994

@jtpio

Description

@jtpio

Description

At the moment the benchmark workflow overwrites the Binder badge comment:

image

Reproduce

Example: #993

Expected behavior

This logic would need to handle other comments that are not benchmark comments:

// Find any comment already made by the bot.
const botComment = comments.find(comment => comment.user.id === 41898282)
if (botComment) {
await github.issues.updateComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: botComment.id,
body: report
})
} else {

Context

Noticed in #993 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions