Skip to content

Commit

Permalink
Can't directly link to artifacts
Browse files Browse the repository at this point in the history
Also removes console.log

Just unreadable for large messages.
  • Loading branch information
eps1lon committed Apr 15, 2024
1 parent 4492c4b commit 3df3e8b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,11 @@ ${significantResults.join('\n')}
`;

if (message.length > 65535) {
// Also logging for quick inspection.
console.log(message);
// But harder to find so also persisting as an artifact
// Make message available as an artifact
writeFileSync('sizebot-message.md', message);
markdown(
'The size diff is too large to display in a single comment. ' +
`The [CircleCI artifacts for this job](${process.env.CIRCLE_BUILD_URL}/artifacts) contains a file called 'sizebot-message.md' with the full message.`
`The [CircleCI job](${process.env.CIRCLE_BUILD_URL}) contains an artifact called 'sizebot-message.md' with the full message.`
);
} else {
markdown(message);
Expand Down

0 comments on commit 3df3e8b

Please sign in to comment.