diff --git a/index.js b/index.js index eb63132..6ac6755 100644 --- a/index.js +++ b/index.js @@ -4,9 +4,9 @@ const submissionDate = context.event.issue.created_at; const template_fields = context.event.issue.body.split("### ").slice(1); const addChainPR = (fields) => { - const chainId = fields[1].split("\n\n")[1]; - const note = fields[2].split("\n\n").slice(1,-1); - const threatLevel=fields[3].split("\n\n")[1][0]; + const chainId = fields[0].split("\n\n")[1]; + const note = fields[1].split("\n\n").slice(1,-1); + const threatLevel=fields[2].split("\n\n")[1][0]; console.log( {chainId,note,threatLevel}); } if (context.event.issue.title.startsWith("[Chain-add]: ")) {