From 4cdee8710f65c8d98131614aaf7fed65643ef864 Mon Sep 17 00:00:00 2001 From: yansong Date: Thu, 28 Sep 2023 17:07:10 -0500 Subject: [PATCH] enhancement --- .github/scripts/release_notes/update-release-notes.js | 1 + .github/scripts/release_notes/utils.js | 3 +++ src/pages/documentation/release-notes/index.md | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/scripts/release_notes/update-release-notes.js b/.github/scripts/release_notes/update-release-notes.js index 33445cff29..f0681b5927 100644 --- a/.github/scripts/release_notes/update-release-notes.js +++ b/.github/scripts/release_notes/update-release-notes.js @@ -187,6 +187,7 @@ async function updateReleaseNotesPage(filePath, releaseInfoArray) { } let contentIsChanged = false for (const releaseInfo of releaseInfoArray) { + console.log("Updating release notes with:", releaseInfo) let title = generateReleaseTitle(releaseInfo.platform, releaseInfo.extension, releaseInfo.version) let titleLine = `### ${title}` if (hasLineStartWith(titleLine, contentLines)) { diff --git a/.github/scripts/release_notes/utils.js b/.github/scripts/release_notes/utils.js index 85355fdeb8..1df803edde 100644 --- a/.github/scripts/release_notes/utils.js +++ b/.github/scripts/release_notes/utils.js @@ -20,6 +20,9 @@ function isEarlierThanXHours(hours, timestampInMilliseconds) { } function extractReleaseNotes(releaseText) { + if (!releaseText) { + return [] + } const lines = releaseText.split('\n'); let start = -1 let end = lines.length diff --git a/src/pages/documentation/release-notes/index.md b/src/pages/documentation/release-notes/index.md index ef33472bf1..3aac7b342c 100644 --- a/src/pages/documentation/release-notes/index.md +++ b/src/pages/documentation/release-notes/index.md @@ -9,7 +9,7 @@ Keywords: ## September 26, 2023 -### Android BOM 2.4.1 +### Android BOM 2.4.1 * This BOM ([Bill of Materials](https://central.sonatype.com/artifact/com.adobe.marketing.mobile/sdk-bom)) release includes changes to the following Android extensions.