We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a05874 commit 0ba37a7Copy full SHA for 0ba37a7
dev-packages/node-overhead-gh-action/lib/Formatter.mjs
@@ -25,11 +25,20 @@ export class Formatter {
25
}
26
27
formatResult(name, base, current, baseline) {
28
+ const numFormat = new Intl.NumberFormat('en-US', {
29
+ style: 'decimal',
30
+ minimumFractionDigits: 0,
31
+ maximumFractionDigits: 0,
32
+ });
33
+
34
+ const currentValue = current ? numFormat(current) : '-';
35
+ const baseValue = base ? numFormat(base) : '-';
36
37
return [
38
name,
- current || '-',
39
+ currentValue,
40
baseline != null ? this.formatPercentageChange(baseline, current) : '-',
- base || '-',
41
+ baseValue,
42
this.formatPercentageChange(base, current),
43
];
44
0 commit comments