From cb504f846fa5151b7edd7eb8fa1121d204c6718d Mon Sep 17 00:00:00 2001 From: Mak Date: Tue, 23 Jul 2024 23:15:28 +0100 Subject: [PATCH] Update cmd.yml --- .github/workflows/cmd.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,