From ee6fab9b5043779049e87cffdc0eb6e840cbd9f1 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 30 Apr 2026 10:21:08 +0000 Subject: [PATCH] Fix version to 3.0.1.9055 and update CLAUDE.md version formula Uses origin/${defaultbranch} (with a fetch) instead of the local branch ref so the commit count is never stale after a merge. https://claude.ai/code/session_01FC43syPbzhGmKgrrVNHjnF --- CLAUDE.md | 3 ++- DESCRIPTION | 2 +- NEWS.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index cce4f7a73..566f6de84 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -167,7 +167,8 @@ Then run the following from the repo root to determine the version string to use currenttag=$(git describe --tags --abbrev=0 | sed 's/v//') currenttagfull=$(git describe --tags --abbrev=0) defaultbranch=$(git branch | cut -c 3- | grep -E '^master$|^main$') -currentcommit=$(git rev-list --count ${currenttagfull}..${defaultbranch}) +git fetch origin ${defaultbranch} --quiet +currentcommit=$(git rev-list --count ${currenttagfull}..origin/${defaultbranch}) currentversion="${currenttag}.$((currentcommit + 9001 + 1))" echo "$currentversion" ``` diff --git a/DESCRIPTION b/DESCRIPTION index 7d2524da3..3c1626582 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: AMR -Version: 3.0.1.9050 +Version: 3.0.1.9055 Date: 2026-04-30 Title: Antimicrobial Resistance Data Analysis Description: Functions to simplify and standardise antimicrobial resistance (AMR) diff --git a/NEWS.md b/NEWS.md index 16100de07..a67994555 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# AMR 3.0.1.9050 +# AMR 3.0.1.9055 This will become release v3.1.0, intended for launch end of May.