Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to update existing comment #438

Open
j-f1 opened this issue Jun 30, 2023 · 1 comment
Open

Fails to update existing comment #438

j-f1 opened this issue Jun 30, 2023 · 1 comment

Comments

@j-f1
Copy link
Contributor

j-f1 commented Jun 30, 2023

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: actualbudget/actual#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
Copy link

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)
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants