From bcedfad6ad65c68143d1a8137daa16fdbaece2ec Mon Sep 17 00:00:00 2001 From: Jaisurya Nanduri Date: Wed, 10 Jul 2024 17:48:11 +0000 Subject: [PATCH] Fix log info --- .github/workflows/pr_approval.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_approval.yml b/.github/workflows/pr_approval.yml index 9e9e278c8fa22..5d340f2109e8f 100644 --- a/.github/workflows/pr_approval.yml +++ b/.github/workflows/pr_approval.yml @@ -108,14 +108,14 @@ jobs: // TODO: Improve logging and messaging to the user console.log('PR Approvers:', Array.from(approvers)); - console.log('Required Approvers:', requiredApproversCount); + console.log('Required Approvers:', requiredApprovals); // Core logic that checks if the approvers are in the committee const checkName = 'PR Approval Status'; const conclusion = (approvers.size >= requiredApprovals && requiredApproversCount >= 2) ? 'success' : 'failure'; const output = { title: checkName, - summary: `PR has ${approvers.size} total approvals and ${requiredApproversCount} required approvals.`, + summary: `PR has ${approvers.size} total approvals and ${requiredApprovals} required approvals.`, text: `Approvers: ${Array.from(approvers).join(', ')}\nRequired Approvers: ${requiredApprovers.join(', ')}` };