Skip to content

Commit 1824790

Browse files
committed
Format PR checks in output
1 parent 8de7fa0 commit 1824790

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

scripts/pr.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,19 @@ async function runChecks() {
183183
: "";
184184
}
185185

186-
console.log(`Writing ${filename}:`, JSON.stringify(result));
186+
console.log(`Checks result:`);
187+
console.log(
188+
JSON.stringify(
189+
result,
190+
(_, value) =>
191+
typeof value === "string" && value.length > 60
192+
? value.substring(0, 60) + "..."
193+
: value,
194+
2,
195+
),
196+
);
197+
198+
console.log(`Writing ${filename}`);
187199
fs.writeFileSync(filename, JSON.stringify(result));
188200

189201
if (failures.length > 0) {

0 commit comments

Comments
 (0)