Skip to content

Conversation

@brunopgalvao
Copy link
Collaborator

Summary

Fixes the weekly release workflow to properly detect squash-merged PRs and implements alpha semantic versioning rules.

Problem

The current workflow only detects merge commits (git log --merges), which means squash-merged PRs are not detected. This caused PR #44's breaking changes to be invisible to the release workflow.

Solution

Changes to Detection Logic

  • ✅ Replace --merges flag with detection of all commits
  • ✅ Look for PR references in squash commits (#123 pattern)
  • ✅ Detect conventional commit types (feat:, fix:, refactor:, etc.)
  • ✅ Look for "breaking change" keywords in commit bodies

Alpha Versioning Rules (v0.x.x)

  • ✅ Major bumps become minor bumps while in alpha (v0.x.x)
  • ✅ Breaking changes: v0.1.0 → v0.2.0
  • ✅ Features/refactors: trigger minor bumps
  • ✅ Fixes/chores: trigger patch bumps

Release Notes

  • ✅ Show all commits with PR references, not just merge commits

Testing

Tested with current commits since v0.1.0:

$ git log v0.1.0..HEAD --pretty=format:"%s" 
refactor: restructure CLI command hierarchy and remove slug parameter (#44)
Rename macOS binaries for clarity (#43)

Detection result:

Impact

After merging this PR:

Next Steps

Once merged, the weekly release workflow will properly detect changes regardless of merge strategy.

Fix the weekly release workflow to properly detect squash-merged PRs
and handle alpha semantic versioning correctly.

Changes:
- Replace --merges flag with all commits detection
- Look for PR references in squash commits (#123)
- Detect conventional commit types (feat, fix, refactor, etc.)
- Look for "breaking change" keywords in commit bodies
- Implement alpha versioning rules (v0.x.x):
  - Major bumps become minor bumps while in alpha
  - Breaking changes trigger v0.1.0 -> v0.2.0
  - Features trigger minor bumps
  - Fixes trigger patch bumps
- Update release notes to show all commits, not just merges

This ensures the weekly release workflow runs correctly regardless of
merge strategy (squash, merge commit, or rebase).

Fixes detection of recent breaking changes in PR #44.
@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2025

🤖 Semantic Version Analysis

Result: PATCH version bump

Commit Analysis

Commit Type Impact Message
8fabad1 fix 🟢 PATCH fix(workflows): update weekly release to detect squash-merge...

Summary

  • Breaking changes (🔴 MAJOR): ✗
  • New features (🟡 MINOR): ✗
  • Bug fixes (🟢 PATCH): ✓

This PR will trigger a PATCH version bump when merged.


Manual override: If this is incorrect, you can manually add one of these labels:

  • semantic:major - Breaking changes
  • semantic:minor - New features
  • semantic:patch - Bug fixes
  • semantic:none - No version bump

Once a manual label is added, this workflow will respect it and not override.

@github-actions github-actions bot added the semantic:patch Bug fix - PATCH version bump label Nov 1, 2025
@brunopgalvao brunopgalvao merged commit 581cf2f into master Nov 1, 2025
5 checks passed
@brunopgalvao brunopgalvao deleted the fix/weekly-release-squash-detection branch November 1, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semantic:patch Bug fix - PATCH version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants