From b914ad324365336917f384395c9a8e9676320497 Mon Sep 17 00:00:00 2001 From: Diyorbek Ibragimov Date: Fri, 28 Jun 2024 14:37:09 +0300 Subject: [PATCH] delete console.log --- .github/workflows/TriageClosedIssue.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/TriageClosedIssue.yml b/.github/workflows/TriageClosedIssue.yml index 3871d0ba623..37d095ab9ef 100644 --- a/.github/workflows/TriageClosedIssue.yml +++ b/.github/workflows/TriageClosedIssue.yml @@ -21,8 +21,6 @@ jobs: repo: context.repo.repo }); - console.log(issueData); - const commentsUrl = issueData.comments_url; const { data: commentsData } = await github.request(commentsUrl); @@ -39,6 +37,7 @@ jobs: // Check if there is a closed/merged pull request associated with the issue // Check if the pull request has been merged + let prAuthors = []; const timeline = await github.rest.issues.listEventsForTimeline({ owner: context.repo.owner, @@ -65,7 +64,7 @@ jobs: } } - if (prCreators.length > 0) { + if (prAuthors.length > 0) { resultString += `PR Authors: ${prAuthors.join(', ')}\n`; } else { resultString += `PR Authors: No one :(\n`; @@ -75,9 +74,5 @@ jobs: issue_number: sandboxIssueNumber, owner: sandboxOwner, repo: sandboxRepo, - body: resultString - }); - - - - \ No newline at end of file + body: resultString, + }); \ No newline at end of file