github / webpack-bundlesize-compare-action

A github action that outputs bundlesize comparison tables for pull requests
MIT License
78 stars 19 forks source link

Fails to update existing comment #438

Open j-f1 opened 1 year ago

j-f1 commented 1 year ago

Hi! I’m using this workflow on a repository I help maintain, and it seems to be repeatedly creating a new PR comment instead of updating the existing one: https://github.com/actualbudget/actual/pull/1122

It might be relevant that I’m running this as a pull_request_target workflow and the PR in question comes from a fork.

Workflow file: https://github.com/actualbudget/actual/blob/1bc988d9d168b56b6ef310173b492f0f8c2559ed/.github/workflows/size-compare.yml

DavidAtBetsson commented 1 year ago

Hi! I'm dealing with the same issue. The reason for me, is that this project thinks, that the github actions[bot] will create the comment, when in reality it's not the one.

    const [currentComment, ...restComments] = comments.filter(
      comment =>
        comment.user?.login === 'github-actions[bot]' &&
        comment.body &&
        comment.body.includes(identifierComment)
    )