Skip to content

Commit 3210252

Browse files
committed
fix: use tag prefix to the forked version
1 parent 8945fc4 commit 3210252

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

.github/workflows/scripts/create-github-release.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ fi
1212

1313
VERSION="$1"
1414

15-
# Remove 'v' prefix from version for release title
16-
VERSION_NO_V=${VERSION#v}
15+
# Tag prefix must remain in sync with get-next-version
16+
TAG_PREFIX="agentic-sdlc-v"
17+
18+
# Remove prefix from version for release title
19+
VERSION_NO_PREFIX=${VERSION#${TAG_PREFIX}}
1720

1821
ASSETS=()
1922
AGENTS=(claude gemini copilot cursor qwen opencode windsurf codex kilocode auggie roo q)
@@ -31,5 +34,5 @@ for agent in "${AGENTS[@]}"; do
3134
done
3235

3336
gh release create "$VERSION" "${ASSETS[@]}" \
34-
--title "Spec Kit Templates - $VERSION_NO_V" \
37+
--title "Agentic SDLC Spec Kit Templates - $VERSION_NO_PREFIX" \
3538
--notes-file release_notes.md

.github/workflows/scripts/create-release-packages.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ if [[ $# -ne 1 ]]; then
1818
exit 1
1919
fi
2020
NEW_VERSION="$1"
21-
if [[ ! $NEW_VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
22-
echo "Version must look like v0.0.0" >&2
21+
TAG_PREFIX="agentic-sdlc-v"
22+
23+
if [[ ! $NEW_VERSION =~ ^${TAG_PREFIX}[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
24+
echo "Version must look like ${TAG_PREFIX}0.0.0" >&2
2325
exit 1
2426
fi
2527

.github/workflows/scripts/generate-release-notes.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ if [[ $# -ne 2 ]]; then
1010
exit 1
1111
fi
1212

13+
TAG_PREFIX="agentic-sdlc-v"
1314
NEW_VERSION="$1"
1415
LAST_TAG="$2"
1516

1617
# Get commits since last tag
17-
if [ "$LAST_TAG" = "v0.0.0" ]; then
18+
if [ "$LAST_TAG" = "${TAG_PREFIX}0.0.0" ]; then
1819
# Check how many commits we have and use that as the limit
1920
COMMIT_COUNT=$(git rev-list --count HEAD)
2021
if [ "$COMMIT_COUNT" -gt 10 ]; then

.github/workflows/scripts/get-next-version.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@ set -euo pipefail
55
# Calculate the next version based on the latest git tag and output GitHub Actions variables
66
# Usage: get-next-version.sh
77

8-
# Get the latest tag, or use v0.0.0 if no tags exist
9-
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
8+
# Prefix all fork-specific tags to avoid upstream conflicts
9+
TAG_PREFIX="agentic-sdlc-v"
10+
11+
# Get the latest prefixed tag, or fall back to the prefixed zero version
12+
LATEST_TAG=$(git tag --list "${TAG_PREFIX}*" --sort=-v:refname | head -n 1)
13+
if [[ -z "${LATEST_TAG}" ]]; then
14+
LATEST_TAG="${TAG_PREFIX}0.0.0"
15+
fi
1016
echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
1117

1218
# Extract version number and increment
13-
VERSION=$(echo $LATEST_TAG | sed 's/v//')
19+
VERSION=${LATEST_TAG#${TAG_PREFIX}}
1420
IFS='.' read -ra VERSION_PARTS <<< "$VERSION"
1521
MAJOR=${VERSION_PARTS[0]:-0}
1622
MINOR=${VERSION_PARTS[1]:-0}
1723
PATCH=${VERSION_PARTS[2]:-0}
1824

1925
# Increment patch version
2026
PATCH=$((PATCH + 1))
21-
NEW_VERSION="v$MAJOR.$MINOR.$PATCH"
27+
NEW_VERSION="${TAG_PREFIX}$MAJOR.$MINOR.$PATCH"
2228

2329
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
2430
echo "New version will be: $NEW_VERSION"

.github/workflows/scripts/update-version.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ fi
1212

1313
VERSION="$1"
1414

15-
# Remove 'v' prefix for Python versioning
16-
PYTHON_VERSION=${VERSION#v}
15+
TAG_PREFIX="agentic-sdlc-v"
16+
17+
# Remove custom prefix for Python versioning
18+
PYTHON_VERSION=${VERSION#${TAG_PREFIX}}
1719

1820
if [ -f "pyproject.toml" ]; then
1921
sed -i "s/version = \".*\"/version = \"$PYTHON_VERSION\"/" pyproject.toml

0 commit comments

Comments
 (0)