Skip to content

Conversation

Kira2K
Copy link

@Kira2K Kira2K commented Aug 27, 2025

Auto Mode Feature Implementation

Overview

This PR implements an auto mode feature for Changesets that automatically generates changesets based on conventional commit analysis.

Key Features

  • New --auto flag for changeset add command
  • Integrates with @semantic-release/commit-analyzer using conventionalcommits preset
  • Handles breaking changes detection and scope-based bump logic for monorepos
  • Configurable via maxCommits, preset, and custom analyzer options
  • No breaking changes, full compatibility with existing logic

Technical Implementation

  • packages/cli/src/commands/add/auto-mode.ts - Main auto-mode logic
  • packages/cli/src/commands/add/semanticAnalyzer.ts - Commit analysis integration

Configuration & Usage

Configure via "auto": { "maxCommits": 100, "preset": "conventionalcommits" } in .changeset/config.json. (standart path)
Usage: npx changeset add --auto

Fixes issues

#1504 & #1698

Copy link

changeset-bot bot commented Aug 27, 2025

⚠️ No Changeset found

Latest commit: 52ebe83

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

@Kira2K Kira2K changed the title Semver commits Add auto mode based on semver commits Aug 27, 2025
@Kira2K
Copy link
Author

Kira2K commented Aug 27, 2025

The failing tests and Typecheck are the same as at current state of "main" branch, so it seems to be unrelated to the feature I added

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.

1 participant