Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Skip attachment URLs in synced help changelogs

ashilkn81fc59a5d0c8
diff --git a/.github/scripts/sync-help-changelog.mjs b/.github/scripts/sync-help-changelog.mjs
index be7559f1af..b8a02a7691 100644
--- a/.github/scripts/sync-help-changelog.mjs
+++ b/.github/scripts/sync-help-changelog.mjs
@@ -54,7 +54,12 @@ const date = new Date().toLocaleString("en-US", {
year: "numeric",
timeZone: "UTC",
});
-const body = normalizeReleaseBodyIndent(process.env.RELEASE_BODY ?? "");
+const body = normalizeReleaseBodyIndent(process.env.RELEASE_BODY ?? "")
+ .replace(
+ /^[ \t]*https:\/\/github\.com\/user-attachments\/assets\/\S+[ \t]*$/gm,
+ "",
+ )
+ .trim();
const section = `${heading} - ${date}\n\n${body}\n`;
const at = content.search(/^## v/m);