Skip to content

feat: Auto version bump on merge to main#69

Merged
nille merged 1 commit intomainfrom
feat/auto-version-bump
Apr 15, 2026
Merged

feat: Auto version bump on merge to main#69
nille merged 1 commit intomainfrom
feat/auto-version-bump

Conversation

@nille
Copy link
Copy Markdown
Owner

@nille nille commented Apr 15, 2026

Summary

  • New GitHub Action that auto-bumps version on every merge to main
  • Parses squash commit title prefix: feat: -> minor, fix: / anything else -> patch, breaking -> major
  • Updates __version__ in shipkit/__init__.py, commits, and creates a git tag
  • Self-skip guard: bot commits start with v so the action won't retrigger

How it works

  1. PR merges to main (squash commit: "feat: Add cool feature (feat: Auto version bump on merge to main #69)")
  2. Action detects feat: prefix -> minor bump
  3. Bumps 0.1.13 -> 0.2.0, commits v0.2.0, tags v0.2.0
  4. Next push (the v0.2.0 commit) skips the action

Test plan

  • CI passes
  • Merge this PR and verify the action creates a version bump commit + tag

GitHub Action that runs on push to main:
- Parses squash commit title for bump type (feat: -> minor, fix: -> patch)
- Bumps __version__ in shipkit/__init__.py
- Commits and tags (v0.1.14, etc.)
- Skips its own commits to prevent infinite loops
@nille nille merged commit c1b29f1 into main Apr 15, 2026
4 checks passed
@nille nille deleted the feat/auto-version-bump branch April 15, 2026 09:50
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