Skip to content

Commit

Permalink
chore: update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed Sep 28, 2024
1 parent 7b6ac73 commit fbcd165
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137841,7 +137841,7 @@ async function deleteOldComments(octokit, owner, repo, pull_number) {
});
}
}
async function commentOnPullRequest(analysis, artifactId) {
async function commentOnPullRequest(commentBody) {
if (!github.context.payload.pull_request) {
throw new Error("No pull request found in the context!");
}
Expand All @@ -137857,7 +137857,6 @@ async function commentOnPullRequest(analysis, artifactId) {
if (deleteComments) {
await deleteOldComments(octokit, owner, repo, pull_number);
}
const commentBody = getCommentTemplate(analysis, artifactId);
await octokit.rest.issues.createComment({
owner,
repo,
Expand All @@ -137878,6 +137877,7 @@ async function commentOnPullRequest(analysis, artifactId) {




const coveragePath = "vmd-analysis.json";
async function installVMD(skipInstall, pkgManager, version) {
if (skipInstall) {
Expand All @@ -137903,8 +137903,10 @@ async function runVueMessDetector(input) {
core.debug(runOutput);
const analysisOutput = parseAnalysisOutput(coveragePath);
const artifact = await uploadOutputArtifact(coveragePath);
const commentBody = getCommentTemplate(analysisOutput, artifact);
await core.summary.addRaw(commentBody).write();
if (isPullRequest() && input.commentsEnabled) {
await commentOnPullRequest(analysisOutput, artifact);
await commentOnPullRequest(commentBody);
}
}
catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit fbcd165

Please sign in to comment.