@code-pushup/utils 0.28.0 → 0.29.0
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/index.js +2 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1686,7 +1686,7 @@ function reportToDetailsSection(audit) {
|
|
|
1686
1686
|
function reportToAboutSection(report) {
|
|
1687
1687
|
const date = formatDate(/* @__PURE__ */ new Date());
|
|
1688
1688
|
const { duration, version, commit, plugins, categories } = report;
|
|
1689
|
-
const commitInfo = commit ? `${commit.message} (${commit.hash
|
|
1689
|
+
const commitInfo = commit ? `${commit.message} (${commit.hash})` : "N/A";
|
|
1690
1690
|
const reportMetaTable = [
|
|
1691
1691
|
reportMetaTableHeaders,
|
|
1692
1692
|
[
|
|
@@ -1762,12 +1762,7 @@ function formatDiffHeaderSection(diff) {
|
|
|
1762
1762
|
...diff.audits.changed
|
|
1763
1763
|
])
|
|
1764
1764
|
);
|
|
1765
|
-
const
|
|
1766
|
-
const styleCommits = (commits) => {
|
|
1767
|
-
const src = styleCommit(commits.before);
|
|
1768
|
-
const tgt = styleCommit(commits.after);
|
|
1769
|
-
return `compared target commit ${tgt} with source commit ${src}`;
|
|
1770
|
-
};
|
|
1765
|
+
const styleCommits = (commits) => `compared target commit ${commits.after.hash} with source commit ${commits.before.hash}`;
|
|
1771
1766
|
return paragraphs(
|
|
1772
1767
|
h1("Code PushUp"),
|
|
1773
1768
|
diff.commits ? `${outcomeTexts[outcome]} \u2013 ${styleCommits(diff.commits)}.` : `${outcomeTexts[outcome]}.`
|