mirror of
https://github.com/msberends/AMR.git
synced 2026-05-31 21:01:45 +02:00
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
This commit is contained in:
@@ -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//')
|
currenttag=$(git describe --tags --abbrev=0 | sed 's/v//')
|
||||||
currenttagfull=$(git describe --tags --abbrev=0)
|
currenttagfull=$(git describe --tags --abbrev=0)
|
||||||
defaultbranch=$(git branch | cut -c 3- | grep -E '^master$|^main$')
|
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))"
|
currentversion="${currenttag}.$((currentcommit + 9001 + 1))"
|
||||||
echo "$currentversion"
|
echo "$currentversion"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 3.0.1.9050
|
Version: 3.0.1.9055
|
||||||
Date: 2026-04-30
|
Date: 2026-04-30
|
||||||
Title: Antimicrobial Resistance Data Analysis
|
Title: Antimicrobial Resistance Data Analysis
|
||||||
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
||||||
|
|||||||
Reference in New Issue
Block a user