chore: migrate changesets changelog generator #456
main fromrefs/pull/456/head·opened Summary#
Migrate the Changesets changelog generator from the compact community package to the official GitHub changelog package.
Changes#
- Updated
.changeset/config.jsonto use@changesets/changelog-github. - Preserved the existing
repooption and addeddisableThanks: true. - Replaced the root dev dependency with
@changesets/changelog-githubat^0.7.0. - Refreshed
pnpm-lock.yamlwith pnpm.
Notes#
Future changelog entries will use the official Changesets GitHub layout instead of the compact suffix layout.
Verification#
git grep -n "@svitejs/changesets-changelog-github-compact"returned no matches.git grep -n "@changesets/changelog-github" -- .changeset/config.json package.json pnpm-lock.yamlconfirmed config, root dev dependency, and lockfile entries.node -e "import('@changesets/changelog-github').then((m)=>{ if (typeof m.default?.getReleaseLine !== 'function' || typeof m.default?.getDependencyReleaseLine !== 'function') throw new Error('missing changelog functions'); console.log('ok changelog exports') })"passed.pnpm changeset status --since=mainpassed and reported no packages to be bumped.
Summary by CodeRabbit#
- Chores
- Switched release notes to the standard GitHub changelog format from the previously configured compact format.
- Changelog entries no longer include repository thanks for TanStack/cli.
- Other changelog workflow settings remain unchanged. These changes affect release documentation and do not alter any public product features or behavior.
- 1
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
Diff Package Supply Chain
SecurityVulnerability Quality Maintenance License @changesets/changelog-github@0.7.0 Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. Inline comments: In @.changeset/config.json: - Around line 4-5: The config entry for "`@changesets/changelog-github`" uses the unsupported option "disableThanks"; update the .changeset/config.json entry to remove "disableThanks" or replace it with the supported "exclude" object (keys: "user", "pr", "commit") so suppression of "Thanks …" works with `@changesets/changelog-github`@0.7.0—e.g., locate the "`@changesets/changelog-github`" array item and either drop the disableThanks property or convert it into an appropriate "exclude" object.🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
7fd2ab03-acec-4c09-bded-f83b11815866📥 Commits
Reviewing files that changed from the base of the PR and between efb411e4b002c1995a368e34066511afd7dba4e8 and 6774ffbdfa8444f76ec4c14c2c862bc9f91eeb21.
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
.changeset/config.jsonpackage.json
@@ -1,5 +1,5 @@11 {22 "$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",33 "changelog": [4- "@svitejs/changesets-changelog-github-compact",5- { "repo": "TanStack/cli" }4+ "@changesets/changelog-github",5+ { "repo": "TanStack/cli", "disableThanks": true }⚠️ Potential issue | 🟠 Major
🧩 Analysis chain
🌐 Web query:
What are the valid configuration options for@changesets/changelog-githubversion 0.7.0?💡 Result:
Valid configuration options for
@changesets/changelog-githubv0.7.0 are the options passed as the second element of thechangelogentry in.changeset/config.json(i.e., thechangelogOptsargument). 1) repo (required) - Type: string - Meaning: GitHub repository in the form"<org>/<repo>". - Example:{"changelog": ["@changesets/changelog-github", { "repo": "<org>/<repo>" }]}[1]. - How it’s used: changelog generation constructs GitHub URLs usingoptions.repoandGITHUB_SERVER_URL[2]. 2) exclude (optional) - Type: object - Supported keys:user,pr,commit. - Values: booleans. - Effect: disables adding those parts to the generated changelog line(s), e.g.exclude: { "user": true },exclude: { "pr": true },exclude: { "commit": true }[3]. Notes/related behavior - Ifrepois set, changelog entries include links to commits/PRs/users (and optionally “Thanks !”), unless suppressed viaexclude[2][3]. - Changesets’ top-level.changeset/config.jsonchangelogsetting accepts eitherfalseor a path/module; when using the GitHub generator you provide@changesets/changelog-githubplus its options object (e.g.{ repo }) [1].Citations:
- 1: https://github.com/changesets/changesets/blob/main/docs/config-file-options.md
- 2: https://github.com/changesets/changesets/blob/main/packages/changelog-github/src/index.ts
- 3: https://registry.npmjs.org/%40dkshs%2Fchangelog-github
Fix
.changeset/config.jsonoptions for@changesets/changelog-github@0.7.0(remove/replacedisableThanks).For
@changesets/changelog-githubv0.7.0, the supported options arerepo(required) and anexcludeobject (keys:user,pr,commit).disableThanksisn’t included in the documented API, so the config should be updated to useexclude(or dropdisableThanks) to ensure “Thanks …” suppression works as intended.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.changeset/config.json around lines 4 - 5, The config entry for "`@changesets/changelog-github`" uses the unsupported option "disableThanks"; update the .changeset/config.json entry to remove "disableThanks" or replace it with the supported "exclude" object (keys: "user", "pr", "commit") so suppression of "Thanks …" works with `@changesets/changelog-github`@0.7.0—e.g., locate the "`@changesets/changelog-github`" array item and either drop the disableThanks property or convert it into an appropriate "exclude" object.This option works in the published package, so we can keep it.
AI review notes: The official @changesets/changelog-github@0.7.0 entry point reads options.disableThanks when producing its release line. A local positive/negative control against that exact installed version produced “Thanks @fixture-user” with false and suppressed it with true. The actual Changesets version fixture also passed with the PR configuration. Package source is available in the published archive. Official 0.7.0 archive
I checked the published
@changesets/changelog-github@0.7.0tarball. Both entry points honoroptions.disableThanksin release notes, so I would keep that option.Could you refresh this branch against current main and regenerate the lockfile with the repo's pinned pnpm? The current diff also changes the Changesets Node types peer from 24.6.0 to 22.15.3 and drops jsdom and Vite's lightningcss, terser, and tsx peers from the workspace test resolution. Please keep the lockfile change scoped to the changelog generator and its dependency graph. For the refreshed diff, please also run a disposable versioning dry run against a representative changeset so we can verify the rendered changelog and version bumps. The status command alone does not exercise the generator.
⚠️ No Changeset found#
Latest commit: 6eee0e6290ad104d92ff9ea3b91cac5bd71c0f48
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Thanks for the changelog migration. The branch is now updated to main with the dependency change kept narrow, and the rendered release notes look right.
AI review notes: Pushed 6eee0e62 through the normal commit path. The lockfile preserves existing peer resolutions and unrelated importers, adds the new generator and its two required package versions, and removes the compact generator. A clean frozen install passed. The normal ten-project build, unit gates, and all eight blocking browser cases passed locally. A disposable two-package Changesets version run verified patch bumps for the changed package and its exact-version dependent, the dependency range update, issue links, multiline notes, and suppression of thanks. It used local fixture data and made no GitHub API requests. New hosted checks and review are still required before merge.
Sign in to join this conversation.
No actionable comments were generated in the recent review.
Walkthrough
The PR replaces the compact GitHub changelog dependency with
@changesets/changelog-github. The Changesets configuration selects the new plugin, identifies the repository, and disables thanks.Changes: Changesets Changelog Generator Update
package.json,.changeset/config.json@changesets/changelog-github@^0.7.0. The Changesets configuration selects this plugin, setsrepo: "TanStack/cli", and setsdisableThanks: true.Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Other
Suggested reviewers:
tannerlinsleyMerge Risk:
Minimal · up to
6eee0No actionable merge-blocking risk is established. Hosted checks and review remain outstanding.
Pre-merge checks:
5
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
Finishing Touches
Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
8eb01ba1-5082-47f0-9e69-22d2d94a114fReviewing files that changed from the base of the PR and between 6774ffbdfa8444f76ec4c14c2c862bc9f91eeb21 and 6eee0e6290ad104d92ff9ea3b91cac5bd71c0f48.
pnpm-lock.yamlis excluded by!**/pnpm-lock.yamlpackage.jsonIncluded review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.