chore: migrate changesets changelog generator #456
main fromrefs/pull/456/head·opened Showing 3 changed files with 3 additions and 3 deletions.
⚠️ Potential issue | 🟠 Major
🧩 Analysis chain
🌐 Web query:
What are the valid configuration options for @changesets/changelog-github version 0.7.0?
💡 Result:
Valid configuration options for @changesets/changelog-github v0.7.0 are the options passed as the second element of the changelog entry in .changeset/config.json (i.e., the changelogOpts argument). 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 using options.repo and GITHUB_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 - If repo is set, changelog entries include links to commits/PRs/users (and optionally “Thanks !”), unless suppressed via exclude [2][3]. - Changesets’ top-level .changeset/config.json changelog setting accepts either false or a path/module; when using the GitHub generator you provide @changesets/changelog-github plus 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.json options for @changesets/changelog-github@0.7.0 (remove/replace disableThanks).
For @changesets/changelog-github v0.7.0, the supported options are repo (required) and an exclude object (keys: user, pr, commit). disableThanks isn’t included in the documented API, so the config should be updated to use exclude (or drop disableThanks) 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