Skip to content

Improve changeset creation#7904

Merged
isaacroldan merged 2 commits into
mainfrom
06-23-improve_changeset_creation
Jun 23, 2026
Merged

Improve changeset creation#7904
isaacroldan merged 2 commits into
mainfrom
06-23-improve_changeset_creation

Conversation

@isaacroldan

@isaacroldan isaacroldan commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Why

Changesets are public changelog entries, but they can be added for repo-only work that is not actually user-facing or ready to announce. That creates noisy release notes and makes automated agents more likely to add unnecessary changesets.

What

  • Add a pnpm changeset wrapper that asks for confirmation before running changeset add.
  • Fail closed for non-interactive changeset add runs so automated agents cannot silently create public changelog entries.
  • Delegate non-add Changesets commands, including release/versioning commands, to the upstream Changesets CLI.
  • Document when contributors and agents should add changesets in CONTRIBUTING.md, AGENTS.md, and tool-specific agent instruction files.
  • Tell agents to keep changeset summaries short, with a one-line maximum.

Testing

  • node --check bin/changeset.js
  • pnpm exec eslint bin/changeset.js
  • pnpm exec prettier --check bin/changeset.js package.json CONTRIBUTING.md AGENTS.md .claude/CLAUDE.md
  • pnpm exec prettier --check AGENTS.md
  • pnpm changeset --version
  • pnpm changeset add non-interactive refusal
  • pnpm changeset add TTY prompt with n
  • pnpm changeset --message "test" refusal

No changeset: this changes repo contributor tooling and agent guidance, not public Shopify CLI behavior.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Jun 23, 2026
@isaacroldan isaacroldan marked this pull request as ready for review June 23, 2026 14:13
@isaacroldan isaacroldan requested a review from a team as a code owner June 23, 2026 14:13
Assisted-By: devx/6d93e11e-762b-48c5-9bcf-265de5035498
@isaacroldan isaacroldan added this pull request to the merge queue Jun 23, 2026
Merged via the queue into main with commit 05d0eaf Jun 23, 2026
28 checks passed
@isaacroldan isaacroldan deleted the 06-23-improve_changeset_creation branch June 23, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants