From faa0b46e6f9537771c40a3d8e09e7e64f227eb5f Mon Sep 17 00:00:00 2001 From: yansong Date: Wed, 4 Oct 2023 18:30:48 -0500 Subject: [PATCH] bug fix; enable messaging/campaign/campaign classic extensions --- .github/scripts/release_notes/android-release.js | 11 +++-------- .github/scripts/release_notes/utils.js | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/scripts/release_notes/android-release.js b/.github/scripts/release_notes/android-release.js index 1961acd819..bf283d81ec 100644 --- a/.github/scripts/release_notes/android-release.js +++ b/.github/scripts/release_notes/android-release.js @@ -175,19 +175,14 @@ function buildGitHubInfo(artifactId, artifactVersion) { case "edgemedia": case "audience": case "userprofile": + case "messaging": + case "campaignclassic": + case "campaign": return { repoName: `aepsdk-${artifactId}-android`, tagName: `v${artifactVersion}` } - // TODO: remove the following code after the tag name is updated - // case "messaging": - // case "campaignclassic": - // case "campaign": - // return { - // repoName: `aepsdk-${artifactId}-android`, - // tagName: artifactVersion - // } default: console.log("artifactId not supported: " + artifactId) return null diff --git a/.github/scripts/release_notes/utils.js b/.github/scripts/release_notes/utils.js index 1df803edde..c5c7bb9847 100644 --- a/.github/scripts/release_notes/utils.js +++ b/.github/scripts/release_notes/utils.js @@ -30,14 +30,14 @@ function extractReleaseNotes(releaseText) { for (let i = 0; i < lines.length; i++) { const line = lines[i]; if (line.startsWith('##') && line.toLowerCase().includes('release notes')) { - start = i + start = i + 1 } if (start >= 0 && line.startsWith('##')) { end = i } } - if (start < 0) { + if (start < 0 || end <= start) { return lines } { return lines.slice(start, end)