From d5ebc099daa3ec976157b6122d727a6319c4af26 Mon Sep 17 00:00:00 2001 From: Shivam Mishra <124146945+shmishra99@users.noreply.github.com> Date: Mon, 30 Oct 2023 15:32:31 +0530 Subject: [PATCH] Update auto-assignment.js --- .github/workflows/scripts/auto-assignment.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/auto-assignment.js b/.github/workflows/scripts/auto-assignment.js index 9b80c36..d9f7ffd 100644 --- a/.github/workflows/scripts/auto-assignment.js +++ b/.github/workflows/scripts/auto-assignment.js @@ -1,9 +1,10 @@ module.exports = async ({ github, context }) => { console.log("line 3", context.payload) // Check if it is a then return issue number else return PR number - const issueNumber = context.payload.issue ? context.payload.issue.number : context.payload.number + // const issueNumber = context.payload.issue ? context.payload.issue.number : context.payload.number let issueNumber; let assigneesList; + //if issue event trigger then it will run this. if(context.payload.issue){ assigneesList = ['shmishra99','sushreebarsa'] issueNumber = context.payload.issue.number