Skip to content

fix: improve AI version bump classification prompt#66

Open
decofe wants to merge 3 commits intomasterfrom
onbjerg/improve-ai-bump-classification
Open

fix: improve AI version bump classification prompt#66
decofe wants to merge 3 commits intomasterfrom
onbjerg/improve-ai-bump-classification

Conversation

@decofe
Copy link
Member

@decofe decofe commented Mar 12, 2026

The default AI prompt had only a single vague line for semver guidance:

Use patch for bug fixes, minor for features, major for breaking changes

This led to removals of public API being classified as patch — e.g. removing a publicly reachable function would get tagged as a patch bump, when it's actually a breaking change.

Replaces it with explicit rules that enumerate what constitutes each bump level:

  • major: removal/rename of public functions, types, traits, modules, CLI flags, RPC methods, config fields, re-exports. "When in doubt between major and minor, choose major."
  • minor: new features, new public API additions, deprecations without removal
  • patch: bug fixes, perf, internal refactors, docs, tests, deps

Co-Authored-By: onbjerg 8862627+onbjerg@users.noreply.github.com

Prompted by: onbjerg

The default AI prompt had only a single vague line for semver guidance:
'Use patch for bug fixes, minor for features, major for breaking changes'.
This led to removals of public API being classified as patch.

Replaces it with explicit rules that enumerate what constitutes a breaking
change (removal/rename of public functions, types, traits, modules, CLI
flags, RPC methods, config fields, etc.) and instructs the LLM to choose
major when in doubt between major and minor.

Co-Authored-By: onbjerg <8862627+onbjerg@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 12, 2026

⚠️ Changelog not found.

A changelog entry is required before merging. We've generated a suggested changelog based on your changes:

Preview
---
changelogs: minor
---

Improved the AI version bump classification prompt with more detailed and explicit rules for determining major, minor, and patch version bumps.

Add changelog to commit this to your branch.

decofe and others added 2 commits March 12, 2026 14:16
Repos can now override the default AI prompt by placing an instructions.md
file in their .changelog/ directory. This lets repos define project-specific
semver classification rules without needing to pass --instructions on every
invocation.

Priority: --instructions flag > .changelog/instructions.md > built-in default.

Co-Authored-By: onbjerg <8862627+onbjerg@users.noreply.github.com>
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.

3 participants