Skip to content

Commit

Permalink
New build
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyscholl committed Oct 15, 2023
1 parent cd653ac commit b330375
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,16 @@ function markDiscussionCommentAnswer() {
},
});
const result = yield countPositiveReactions(checkComments);
if (result && Number(result.totalReactions) >= Number(reactionThreshold)) {
(0, core_1.setFailed)("Comment reaction threshold has not been met to be considered an answer.");
return;
}
commentNodeId = result.commentId;
yield (0, core_1.setOutput)("commentText", result.commentText);
yield (0, core_1.setOutput)("reactionThreshold", reactionThreshold);
yield (0, core_1.setOutput)("totalReactions", result.totalReactions);
console.log(result.totalReactions);
yield (0, core_1.setOutput)("commentId", result.commentId);
if (Number(result.totalReactions) >= Number(reactionThreshold)) {
(0, core_1.setFailed)("Comment reaction threshold has not been met to be considered an answer.");
return;
}
}
catch (err) {
console.log(err);
Expand Down

0 comments on commit b330375

Please sign in to comment.