diff --git a/github-actions/trigger-schedule/list-inactive-members/create-new-issue.js b/github-actions/trigger-schedule/list-inactive-members/create-new-issue.js index 9a647dbf7f..39c24ab177 100644 --- a/github-actions/trigger-schedule/list-inactive-members/create-new-issue.js +++ b/github-actions/trigger-schedule/list-inactive-members/create-new-issue.js @@ -51,15 +51,15 @@ const createIssue = async (owner, repo, inactiveLists) => { // Uses issueTemplateParser to pull the relevant data from the issue template const pathway = 'github-actions/trigger-schedule/list-inactive-members/inactive-members.md'; - const issueData = issueTemplateParser(pathway); + const issueObject = issueTemplateParser(pathway); - let title = issueData[2].toString() + let title = issueObject['title']; console.log(title); - let labels = issueData[3] + let labels = issueObject['labels']; console.log(labels); - let milestone = issueData[4]; + let milestone = parseInt(issueObject['milestone']); console.log(milestone); - let body = issueData[6]; + let body = issueObject['body']; console.log(body); // Replace variables on issue template body = body.replace('${notifiedList}', notifiedList);