Dashboard › cli › Distillation
f9b5bec2-0c9a-4924-93a2-11c1620ad4cc["lore_tm_v1_rOymjPh_RZky8-lFHMZMytzM3DDf67Zr9Vm_dDHcbuI"]
packages/cli/src/lib/release-notes.ts replaced GITHUB_RELEASES_URL with getGitHubReleasesUrl and added PRIMARY_UPGRADE_SOURCE plus UpgradeSource, making release-note retrieval source-aware.packages/cli/src/lib/release-notes.ts now imports isNormalizedForSource, NormalizedGitHubReleases, and normalizeStableReleases from ./delta-upgrade.js to normalize and validate stable GitHub releases for the selected upgrade source.buildChangelogSummary(releases, fromVersion, toVersion, maxItems?) remains as a compatibility API for releases with legacy unprefixed tags; it delegates to buildChangelogSummaryForSource(releases, fromVersion, toVersion, { maxItems }).fetchStableChangelog(options: FetchChangelogOptions & { source: UpgradeSource }); it destructures fromVersion, toVersion, maxItems, prefetchedReleases, and source, normalizes prefetched releases with normalizeChangelogReleases(prefetchedReleases, source), otherwise calls fetchReleasesForChangelog(source), returns null for no releases, and builds output via buildChangelogSummaryForSource(..., { maxItems, source }).fetchNightlyChangelog() now accepts source: UpgradeSource; its GitHub Commits API URL changed from hard-coded getsentry/cli to https://api.github.com/repos/${source.githubRepo}/commits?sha=main&since=${sinceDate}&until=${untilDate}&per_page=100, preserving source affinity for nightly release notes.CHANGELOG_MAX_RELEASES = 30 for stable changelog history, while nightly commit retrieval uses GitHub’s per_page=100.