Rh-acm-switchover release
Bump version across all project files (Python, Bash, Container, Helm, README, CHANGELOG). Usage - /release 1.6.0
git clone https://github.com/tomazb/rh-acm-switchover
T=$(mktemp -d) && git clone --depth=1 https://github.com/tomazb/rh-acm-switchover "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/release" ~/.claude/skills/tomazb-rh-acm-switchover-release && rm -rf "$T"
.claude/skills/release/SKILL.mdRelease Version Bump
Automate version bumps across all 6 project version locations.
Arguments
The user provides a semver version string as the argument:
X.Y.Z (e.g., 1.6.0).
If no argument is provided or it doesn't match the
X.Y.Z pattern, ask the user for the version.
Procedure
Set
NEW_VERSION to the argument and NEW_DATE to today's date (YYYY-MM-DD).
Read each file first, then use the Edit tool to make targeted replacements. Do NOT use sed or other Bash tools — use the Edit tool for all changes.
1. lib/__init__.py
lib/__init__.pyReplace the
__version__ and __version_date__ values:
__version__ = "<OLD>" → __version__ = "<NEW_VERSION>" __version_date__ = "<OLD>" → __version_date__ = "<NEW_DATE>"
2. scripts/constants.sh
scripts/constants.shReplace the exported version variables:
export SCRIPT_VERSION="<OLD>" → export SCRIPT_VERSION="<NEW_VERSION>" export SCRIPT_VERSION_DATE="<OLD>" → export SCRIPT_VERSION_DATE="<NEW_DATE>"
3. README.md
README.mdReplace the version line at the top (line 3):
**Version X.Y.Z** (YYYY-MM-DD) → **Version <NEW_VERSION>** (<NEW_DATE>)
4. CHANGELOG.md
CHANGELOG.mdPromote unreleased content into a new version section. The current structure is:
## [Unreleased] ### Added <content> ### Changed <content> ### Fixed <content>
Replace with:
## [Unreleased] ### Added ### Changed ### Fixed ## [<NEW_VERSION>] - <NEW_DATE> ### Added <content> ### Changed <content> ### Fixed <content>
Keep any content that was under the old
[Unreleased] subsections — move it to the new version section. If the unreleased subsections are empty, still create the new version section with those empty subsections.
5. container-bootstrap/Containerfile
container-bootstrap/ContainerfileReplace the version label:
version="<OLD>" → version="<NEW_VERSION>"
6. deploy/helm/acm-switchover-rbac/Chart.yaml
deploy/helm/acm-switchover-rbac/Chart.yamlReplace both version fields:
version: <OLD> → version: <NEW_VERSION> appVersion: "<OLD>" → appVersion: "<NEW_VERSION>"
After All Edits
Run
git diff to show all changes as a summary for the user to review.
Do NOT commit, tag, or push. Tell the user they can use
/commit when ready.