Skip to content

Commit

Permalink
Update auto-assignment.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shmishra99 authored Oct 30, 2023
1 parent b6e031d commit d5ebc09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/scripts/auto-assignment.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d5ebc09

Please sign in to comment.