Skip to content

Commit

Permalink
Update create-new-issue.js
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Dec 4, 2023
1 parent 8aea8f6 commit 5474a3a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5474a3a

Please sign in to comment.