diff --git a/.github/workflows/cmd.yml b/.github/workflows/cmd.yml index 1b65b54167..65e0b7f59a 100644 --- a/.github/workflows/cmd.yml +++ b/.github/workflows/cmd.yml @@ -74,8 +74,7 @@ jobs: }).then(comments => { for (let comment of comments.data) { console.log(comment) - console.log(comment.author) - if (comment.body.startsWith('Command') && comment.author.login === 'github-actions[bot]') { + if (comment.body.startsWith('Command') && comment.user.login === 'github-actions[bot]') { github.rest.issues.deleteComment({ comment_id: comment.id, owner: context.repo.owner,