@dragonshorn-studios/elyseum-cli 1.0.1 → 1.0.3
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
|
@@ -25072,7 +25072,7 @@ class GithubPRCommentCoverageReporter {
|
|
|
25072
25072
|
reportInfo += ` (triggering run: <a href="/${repoName}/actions/runs/${runId}">${runId}</a>)`;
|
|
25073
25073
|
markdown += `\n\n---\n\n${reportInfo}`;
|
|
25074
25074
|
// write the markdown to a file
|
|
25075
|
-
fs$1.writeFileSync(
|
|
25075
|
+
fs$1.writeFileSync(commentFilePath, markdown);
|
|
25076
25076
|
let annotations = [];
|
|
25077
25077
|
if (createAnnotations) {
|
|
25078
25078
|
for (const file of diffCoverage.files) {
|
|
@@ -25125,16 +25125,10 @@ class GithubPRCommentCoverageReporter {
|
|
|
25125
25125
|
: qualityGateWarning
|
|
25126
25126
|
? "neutral"
|
|
25127
25127
|
: "success",
|
|
25128
|
-
|
|
25129
|
-
|
|
25130
|
-
|
|
25131
|
-
|
|
25132
|
-
: qualityGateWarning
|
|
25133
|
-
? "Warning"
|
|
25134
|
-
: "Passed"}`,
|
|
25135
|
-
text: markdown,
|
|
25136
|
-
annotations: annotations,
|
|
25137
|
-
},
|
|
25128
|
+
title: "Coverage Quality Gate",
|
|
25129
|
+
summary: `Coverage Quality Gate ${qualityGateFailed ? "Failed" : qualityGateWarning ? "Warning" : "Passed"}`,
|
|
25130
|
+
text: markdown,
|
|
25131
|
+
annotations: annotations,
|
|
25138
25132
|
};
|
|
25139
25133
|
fs$1.writeFileSync(annotationFilePath, JSON.stringify(checkData));
|
|
25140
25134
|
}
|
|
@@ -25163,11 +25157,9 @@ class GithubPRCommentCoverageReporter {
|
|
|
25163
25157
|
name: "Quality Gate",
|
|
25164
25158
|
head_sha: process.env.GITHUB_SHA,
|
|
25165
25159
|
status: "failure",
|
|
25166
|
-
|
|
25167
|
-
|
|
25168
|
-
|
|
25169
|
-
text: JSON.stringify(details),
|
|
25170
|
-
},
|
|
25160
|
+
title: "Coverage Quality Gate",
|
|
25161
|
+
summary: message,
|
|
25162
|
+
text: JSON.stringify(details),
|
|
25171
25163
|
};
|
|
25172
25164
|
fs$1.writeFileSync(annotationFilePath, JSON.stringify(checkData));
|
|
25173
25165
|
}
|