Skip to content

Commit

Permalink
Merge pull request #591 from sbenedicadb/automation-update-aepnotific…
Browse files Browse the repository at this point in the history
…ationcontent

-add aepnotificationcontent extension to release note automation scripts
  • Loading branch information
sbenedicadb authored Apr 29, 2024
2 parents b056f8c + e157fe8 commit 94760c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/release_notes/SDKReleaseInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ function standardizeExtensionName(extensionName) {
return EXTENSION_ENUM.CAMPAIGN_STANDARD;
case extensionName.includes("campaign") && extensionName.includes("classic"):
return EXTENSION_ENUM.CAMPAIGN_CLASSIC;
case extensionName === "notificationcontent":
return EXTENSION_ENUM.NOTIFICATION_CONTENT;
default:
throw Error("unsupported extension name : " + extensionName)
}
Expand Down
4 changes: 3 additions & 1 deletion .github/scripts/release_notes/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const repoNames = [
"aepsdk-places-android",
"aepsdk-target-ios",
"aepsdk-target-android",
"aepsdk-notificationcontent-ios",
]

const EXTENSION_ENUM = Object.freeze({
Expand All @@ -73,7 +74,8 @@ const EXTENSION_ENUM = Object.freeze({
MEDIA: "Media",
AUDIENCE: "Audience",
CAMPAIGN_STANDARD: "Campaign Standard",
CAMPAIGN_CLASSIC: "Campaign Classic"
CAMPAIGN_CLASSIC: "Campaign Classic",
NOTIFICATION_CONTENT: "Notification Content Extension"
})

const PLATFORM_ENUM = Object.freeze({
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/release_notes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ console.log(`Start to fetch release info from GitHub created after [${convertToD
// We don't have separate release-notes pages for React Native, Roku, Flutter, and BOM artifacts.
if (releaseInfo.platform === PLATFORM_ENUM.ROKU ||
releaseInfo.extension === EXTENSION_ENUM.BOM ||
releaseInfo.extension === EXTENSION_ENUM.EDGE_BRIDGE) {
releaseInfo.extension === EXTENSION_ENUM.EDGE_BRIDGE ||
releaseInfo.extension === EXTENSION_ENUM.NOTIFICATION_CONTENT) {
continue
}

Expand Down

0 comments on commit 94760c2

Please sign in to comment.