[PR #137] [MERGED] feat(release): auto-increment the version on release #136

Closed
opened 2026-10-15 12:52:16 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/games-on-whales/LXC2Docker/pull/137
Author: @JBailes
Created: 7/5/2026
Status: ✅ Merged
Merged: 7/5/2026
Merged by: @JBailes

Base: main ← Head: feat/release-auto-increment


📝 Commits (1)

  • 4c0d8bf feat(release): auto-increment the version instead of requiring one

📊 Changes

3 files changed (+69 additions, -21 deletions)

View changed files

📝 Makefile (+7 -5)
📝 readme.md (+8 -3)
📝 scripts/release.sh (+54 -13)

📄 Description

make release / scripts/release.sh previously required a manually-specified version, so releases didn't auto-increment. Now they derive the next version from the latest vX.Y.Z tag:

  • make release → patch bump (v0.1.4 → v0.1.5)
  • make release BUMP=minor / BUMP=major
  • make release VER=1.4.0 → explicit
  • ./scripts/release.sh [--minor|--major|X.Y.Z]

Fetches remote tags first so it increments correctly from a fresh clone, drops any prerelease/build suffix when bumping, and keeps the clean-tree / existing-tag guards. Verified: from v0.1.0 → patch v0.1.1, minor v0.2.0, major v1.0.0.

Optional follow-up (not in this PR): auto-tag on every merge to main for fully hands-off releases — say the word and I'll add a CI job.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/games-on-whales/LXC2Docker/pull/137 **Author:** [@JBailes](https://github.com/JBailes) **Created:** 7/5/2026 **Status:** ✅ Merged **Merged:** 7/5/2026 **Merged by:** [@JBailes](https://github.com/JBailes) **Base:** `main` ← **Head:** `feat/release-auto-increment` --- ### 📝 Commits (1) - [`4c0d8bf`](https://github.com/games-on-whales/LXC2Docker/commit/4c0d8bf507a6c860d92e79ae7445f606a492431d) feat(release): auto-increment the version instead of requiring one ### 📊 Changes **3 files changed** (+69 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+7 -5) 📝 `readme.md` (+8 -3) 📝 `scripts/release.sh` (+54 -13) </details> ### 📄 Description `make release` / `scripts/release.sh` previously *required* a manually-specified version, so releases didn't auto-increment. Now they derive the next version from the latest `vX.Y.Z` tag: - `make release` → patch bump (`v0.1.4` → `v0.1.5`) - `make release BUMP=minor` / `BUMP=major` - `make release VER=1.4.0` → explicit - `./scripts/release.sh [--minor|--major|X.Y.Z]` Fetches remote tags first so it increments correctly from a fresh clone, drops any prerelease/build suffix when bumping, and keeps the clean-tree / existing-tag guards. Verified: from `v0.1.0` → patch `v0.1.1`, minor `v0.2.0`, major `v1.0.0`. Optional follow-up (not in this PR): auto-tag on every merge to `main` for fully hands-off releases — say the word and I'll add a CI job. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 12:52:16 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/LXC2Docker#136
No description provided.