@dragonshorn-studios/elyseum-cli 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -25140,7 +25140,7 @@ class GithubPRCommentCoverageReporter {
|
|
|
25140
25140
|
title: "Coverage Quality Gate",
|
|
25141
25141
|
summary: `Coverage Quality Gate ${qualityGateFailed ? "Failed" : qualityGateWarning ? "Warning" : "Passed"}`,
|
|
25142
25142
|
text: markdown,
|
|
25143
|
-
annotations: annotations,
|
|
25143
|
+
annotations: annotations.slice(0, 50),
|
|
25144
25144
|
};
|
|
25145
25145
|
fs$1.writeFileSync(annotationFilePath, JSON.stringify(checkData));
|
|
25146
25146
|
}
|
|
@@ -25177,9 +25177,10 @@ class GithubPRCommentCoverageReporter {
|
|
|
25177
25177
|
}
|
|
25178
25178
|
}
|
|
25179
25179
|
getIcon(percent, qualityGate, qualityGateFail) {
|
|
25180
|
-
|
|
25180
|
+
if (isNaN(percent)) {
|
|
25181
|
+
return "⚪";
|
|
25182
|
+
}
|
|
25181
25183
|
if (percent >= qualityGate) {
|
|
25182
|
-
// green circle
|
|
25183
25184
|
return "🟢";
|
|
25184
25185
|
}
|
|
25185
25186
|
else if (percent >= qualityGateFail) {
|