Skip to content

feat: add automatic version bump detection to bit ci merge#9838

Merged
davidfirst merged 6 commits intomasterfrom
feat/ci-merge-auto-version-bump
Jul 16, 2025
Merged

feat: add automatic version bump detection to bit ci merge#9838
davidfirst merged 6 commits intomasterfrom
feat/ci-merge-auto-version-bump

Conversation

@davidfirst
Copy link
Member

Enhances bit ci merge command with automatic version bump detection from commit messages, eliminating the need to manually specify version flags in many cases.

Auto-detection priority:

  1. Explicit keywords: BIT-BUMP-MAJOR, BIT-BUMP-MINOR in commit message
  2. Conventional commits: feat\!:/BREAKING CHANGE → major, feat: → minor, fix: → patch
  3. Default: patch version bump

Key features:

  • Only triggers when no explicit version flags (--patch, --minor, --major) are provided
  • Configurable via useConventionalCommitsForVersionBump and useExplicitBumpKeywords in workspace.jsonc
  • Includes CircleCI wrapper script for environment variable support (VERSION_BUMP_TYPE)
  • Comprehensive documentation with examples

Example usage:

git commit -m "feat: add new API endpoint"
bit ci merge --build  # → auto-detects minor bump

git commit -m "feat: add feature BIT-BUMP-MINOR"  
bit ci merge --build  # → auto-detects minor bump

@davidfirst davidfirst enabled auto-merge (squash) July 16, 2025 14:59
@davidfirst davidfirst merged commit d70cef4 into master Jul 16, 2025
9 of 10 checks passed
@davidfirst davidfirst deleted the feat/ci-merge-auto-version-bump branch July 16, 2025 15:08
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