Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion tools/prepare-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async function prepareRelease(type) {

console.log();
console.log("Compute diff between package and repo contents");
const diff = computeDiff(type);
let diff = computeDiff(type);
console.log(`- Diff length: ${diff?.length}`);
if (!diff) {
if (pendingPR) {
Expand All @@ -168,6 +168,19 @@ async function prepareRelease(type) {
console.log("- No diff found, return");
return;
}
if (diff.length > 60000) {
console.log("- Diff is too long, dump it to the console and truncate");
console.log();
console.log("----- DIFF BEGINS -----")
console.log(diff);
console.log("----- DIFF ENDS -----")
diff = `IMPORTANT:
- Diff is too long to render in a PR description: ${diff.length} characters
- First 60000 characters shown below
- Check the action log for the full diff

${diff.substring(0, 60000)}`;
}

console.log();
console.log("Extract and bump version number");
Expand Down