From d3969d2753ee9e31642d969bb1fd678afbea8ee0 Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Sat, 20 Jul 2024 14:42:13 -0700 Subject: [PATCH] Update preliminary-update-comment.js --- .../add-preliminary-comment/preliminary-update-comment.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js b/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js index ee7f98009b..a0f5d08c88 100644 --- a/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js +++ b/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js @@ -128,7 +128,7 @@ async function assignedToAnotherIssue() { })).data; const otherIssues = []; - + let issueNum = context.payload.issue.number; for(const issue of issues) { // Check if assignee's other issue is an "Agenda" issue const isAgendaIssue = issue.labels.some(label => label.name === "feature: agenda"); @@ -137,10 +137,10 @@ async function assignedToAnotherIssue() { const isPreWork = issue.labels.some(label => label.name === "Complexity: Prework"); // ...or has "Emergent Request" Status - const inEmergentRequestStatus = (await queryIssueInfo(issue.number, github, context)).statusName === Emergent_Requests; + const inEmergentRequestStatus = (await queryIssueInfo(issueNum, github, context)).statusName === Emergent_Requests; // ...or has "New Issue Approval" Status - const inNewIssueApprovalStatus = (await queryIssueInfo(issue.number, github, context)).statusName === New_Issue_Approval; + const inNewIssueApprovalStatus = (await queryIssueInfo(issueNum, github, context)).statusName === New_Issue_Approval; // Include the assignee's other issue only if none of the conditions are met if(!(isAgendaIssue || isPreWork || inEmergentRequestStatus || inNewIssueApprovalStatus))