Files
payload-mailing/.github/workflows
Bas van den Aakster 9064d398c0 Implement intelligent version calculation based on branch comparison
### 🚀 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>
2025-09-13 14:01:42 +02:00
..
2025-09-13 12:11:08 +02:00