Skip to content

Commit

Permalink
bug fix; enable messaging/campaign/campaign classic extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyansong-adbe committed Oct 4, 2023
1 parent 0ae23d5 commit faa0b46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions .github/scripts/release_notes/android-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/release_notes/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit faa0b46

Please sign in to comment.