Skip to content

Add JSON schema and enhance config options - #34

Merged
theoephraim merged 8 commits into
mainfrom
feat/json-schema-and-config-enhancements
Apr 22, 2026
Merged

theoephraim merged 8 commits into
mainfrom
feat/json-schema-and-config-enhancements

Conversation

@theoephraim

@theoephraim theoephraim commented Apr 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add published JSON schema (config-schema.json) for .bumpy/_config.json — provides editor autocomplete, validation, and inline descriptions for all options
  • bumpy init now includes $schema pointing to the local node_modules copy so the schema stays in sync with the installed version
  • Add changedFilePatterns option (root + per-package, powered by picomatch) to control which file changes count toward marking a package as changed
  • Add versionCommitMessage config option for customizing the version commit message — a plain string is used as-is, a path starting with ./ or ../ is loaded as a module. Used by both bumpy version --commit and CI commands
  • Add --commit flag to bumpy version for local auto-commit (replaces old commit boolean config)
  • Allow changelog: false to disable changelog generation entirely
  • CI commands (autoPublish, createVersionPr) now respect versionCommitMessage

Test plan

  • TypeScript compiles cleanly
  • All 177 existing tests pass
  • Verify JSON schema provides autocomplete in VS Code
  • Test changedFilePatterns filtering with per-package overrides
  • Test bumpy version --commit with default and custom versionCommitMessage
  • Test changelog: false skips changelog generation

🤖 Generated with Claude Code

@bumpy-bot

bumpy-bot commented Apr 21, 2026 •

Copy link
Copy Markdown
Collaborator

bumpy-frog

The changes in this PR will be included in the next version bump.

minor Minor releases

  • @varlock/bumpy 1.0.0 → 1.1.0

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

theoephraim and others added 5 commits April 21, 2026 16:46
- Add published JSON schema (config-schema.json) for .bumpy/_config.json with full
  validation, autocomplete, and descriptions for all options
- `bumpy init` now includes $schema pointing to local node_modules copy
- Add `changedFilePatterns` option (root + per-package) using picomatch for filtering
  which file changes count toward marking a package as changed
- Expand `commit` to accept `{ message, generateFn }` for custom commit messages
- Allow `changelog: false` to disable changelog generation entirely
- Add picomatch dependency for robust glob matching

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove `commit` from config (was boolean controlling auto-commit)
- Add `versionCommitMessage` config option (string or { message, generateFn })
  for customizing the commit message used by both local and CI commands
- Add `--commit` flag to `bumpy version` for local auto-commit
- Extract shared resolveCommitMessage to core/commit-message.ts
- CI commands (autoPublish, createVersionPr) now respect versionCommitMessage

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Paths starting with "./" or "../" are loaded as modules, otherwise
the string is used as a static commit message.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@theoephraim
theoephraim force-pushed the feat/json-schema-and-config-enhancements branch from b88b592 to 7a91512 Compare April 21, 2026 23:46
theoephraim and others added 3 commits April 21, 2026 16:49
Only count src, package.json, and build config changes toward
triggering the bump file check.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@theoephraim
theoephraim merged commit fdc26a9 into main Apr 22, 2026
3 of 4 checks passed
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.

2 participants