From f00662603cb61df538d3500928e9e6c5a7429dfd Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Sat, 20 Jul 2024 10:13:21 -0700 Subject: [PATCH] Update preliminary-update-comment.js --- .../add-preliminary-comment/preliminary-update-comment.js | 5 ++--- 1 file changed, 2 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 4f18a2c419..5b30a851ec 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 @@ -58,12 +58,10 @@ async function main({ g, c }, { shouldPost, issueNum }) { return; } - - console.log(`number: ${issueNum}`); - console.log(typeof(issueNum)); github = g; context = c; issueNum = issueNum; + // Get the latest developer in case there are multiple assignees assignee = await getLatestAssignee(); @@ -130,6 +128,7 @@ async function assignedToAnotherIssue() { assignee: assignee, state: "open", // Only fetch opened issues })).data; + issueNum = context.payload.issue.number; console.log(`line 133 number: ${issueNum}`); const otherIssues = [];