Skip to content

Commit

Permalink
wip workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
clockworkgr committed Jul 8, 2024
1 parent 00078dd commit db0ace4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]: ")) {
Expand Down

0 comments on commit db0ace4

Please sign in to comment.