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