Skip to content

feat(updater): Add changelog-path input - #183

Merged
vaind merged 3 commits into
getsentry:mainfrom
tustanivsky:feat/updater-changelog-path
Nov 10, 2026
Merged

vaind merged 3 commits into
getsentry:mainfrom
tustanivsky:feat/updater-changelog-path

Conversation

@tustanivsky

@tustanivsky tustanivsky commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Adds an optional changelog-path input for dependencies whose changelog isn't in the repository root, e.g. packages/cli/CHANGELOG.md for the CLI in getsentry/toolkit.

When set:

  • get-changelog.ps1 fetches the changelog from that path at both tags instead of trying the root file names.
  • If it isn't found, the commit-based fallback only lists commits in the changelog's directory (git log <old>..<new> -- packages/cli), so a monorepo update doesn't list every package's commits.
  • update-changelog.ps1 links the entry to that path instead of the root CHANGELOG.md.

The default is empty, so existing callers keep the root lookup.

Fixes #182

The changelog step now takes both the extracted versions from getsentry#184 and the changelog path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 89b5b6d. Configure here.

$bulletPoint = $lines | Where-Object { ($_ -match '^ *[-*] ') -and -not ($_ -match '(Bump .* to|\[changelog\]|\[diff\])') } | Select-Object -First 1
$bulletPoint = "$("$bulletPoint".Trim())-"[0]
$entry = @("$bulletPoint Bump $Name from $oldTagNice to $newTagNice ($PullRequestMD)",
" $bulletPoint [changelog]($RepoUrl/blob/$MainBranch/CHANGELOG.md#$tagAnchor)",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Existing entries keep old changelog path

Low Severity

When an unreleased bump entry already exists, the updater only rewrites the version, PR, changelog anchor, and diff range. It never applies changelog-path to the existing changelog URL, so a newly configured nested path is ignored until that entry is replaced. Callers who add changelog-path while a long-lived update PR still has an unreleased entry keep linking to the root CHANGELOG.md.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 89b5b6d. Configure here.

@vaind
vaind merged commit 973b0f2 into getsentry:main Nov 10, 2026
14 checks passed
@tustanivsky
tustanivsky deleted the feat/updater-changelog-path branch November 10, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

updater: support per-package changelogs in monorepos

2 participants