Skip to content

Conversation

@technicalpickles
Copy link
Owner

@technicalpickles technicalpickles commented Feb 2, 2026

Summary

  • Fixes version bump detection in GitHub Actions CI where local main branch doesn't exist
  • The analyze-version-bumps.sh script now prefers origin/main when available
  • Applies missed version bumps for plugins affected by this bug

Problem

GitHub Actions checkout with fetch-depth: 0 fetches all commits but doesn't create a local main branch - only origin/main exists. The script was using git log main..HEAD which silently failed (stderr redirected, fallback to empty), returning no commits, causing CI to pass when it should have detected pending version bumps.

This allowed several PRs to be merged without proper version bumps.

Solution

Added resolve_branch_ref() function that:

  1. Tries origin/$branch first (works in CI)
  2. Falls back to local $branch (works in local dev)
  3. Maintains compatibility with existing behavior

Missed Version Bumps Applied

Plugin Previous New Reason
tool-routing 1.0.0 1.1.0 manifest-driven discovery feature (PR #23)
dev-tools 1.0.0 1.1.0 hk skill, colima merge
second-brain 1.1.0 1.2.0 vault disambiguation

Test plan

  • CI should pass on this PR
  • After merge, verify claude plugin update sees new versions

🤖 Generated with Claude Code

technicalpickles and others added 2 commits February 1, 2026 21:59
GitHub Actions checkout with fetch-depth: 0 fetches all commits but
doesn't create a local main branch - only origin/main exists. The
analyze-version-bumps.sh script was using `git log main..HEAD` which
silently failed, returning no commits, causing CI to pass when it
should have detected pending version bumps.

Added resolve_branch_ref() function that prefers origin/$branch when
available, falling back to local $branch. This fixes version bump
detection in CI while maintaining compatibility with local development.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Bumps plugins that had feat/fix commits after the versioning automation
was introduced but were missed due to the CI bug:

- tool-routing: 1.0.0 → 1.1.0 (manifest-driven discovery feature)
- dev-tools: 1.0.0 → 1.1.0 (hk skill, colima merge)
- second-brain: 1.1.0 → 1.2.0 (vault disambiguation)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@technicalpickles technicalpickles changed the title fix(repo): use origin/main in CI for version bump detection fix(repo): use origin/main in CI and apply missed version bumps Feb 2, 2026
@technicalpickles technicalpickles merged commit cb8af1a into main Feb 2, 2026
1 check passed
@technicalpickles technicalpickles deleted the fix/ci-use-origin-main branch February 2, 2026 03:07
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.

1 participant