Skip to content

Commit

Permalink
trying this as import
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorFries committed Nov 8, 2024
1 parent 1ac46e3 commit 87ef366
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/helpers/npm-deps/create-report-issues.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const outputText = require(path.resolve(__dirname, `../../../outputText.json`));
const updateIssueAndComment = import(
"../github-api/update-issue-and-comment.mjs"
);
const closeAndCreateIssue = updateIssueAndComment.closeAndCreateIssue;
const createAndCloseComment = updateIssueAndComment.createAndCloseComment;

/**
* THIS FILE DOES NOT REQUIRE ANY EDITING.
Expand All @@ -27,7 +25,7 @@ const commentIn = JSON.parse(process.env.commentContents);
? `${packagePath} NPM Dependency Report`
: "NPM Dependency Report";
// Await the completion of create and close existing issue.
const newIssueNumber = await closeAndCreateIssue(
const newIssueNumber = await updateIssueAndComment.closeAndCreateIssue(
issueTitle,
outputText[packagePath],
);
Expand All @@ -37,7 +35,7 @@ const commentIn = JSON.parse(process.env.commentContents);
}

// Await the completion of create and close comment
const commentRes = await createAndCloseComment(
const commentRes = await updateIssueAndComment.createAndCloseComment(
Number(newIssueNumber),
comment,
);
Expand Down

0 comments on commit 87ef366

Please sign in to comment.