mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 08:13:23 +00:00
### 🚀 Features - Version bumping now compares source branch vs target branch versions - Calculates proper increment from version differences between branches - Applies calculated increment to target branch version for new version ### 🔧 Improvements - Replaces branch name-based versioning with actual version analysis - Shows detailed version calculation in workflow logs - Validates that source version is higher than target version - Supports increments greater than 1 (e.g., patch increases by 2) ### 🧮 Version Calculation Logic - **Target (main)**: `1.2.3`, **Source (patch/dev)**: `1.2.5` - **Calculation**: patch increased by 2, so increment = 1 - **Result**: `1.2.4` (target version + minimum needed increment) ### 📊 Enhanced Validation - Fails if no version increase detected between branches - Ensures positive increments for version calculations - Detailed logging of version comparison and calculation steps 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>