From 9ec422accdb5664b284b37692090a94e45e43b1d Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Sun, 11 Jan 2026 10:38:31 -0600 Subject: [PATCH] fix: consistent zero-padding for decimal phase numbers Decimal phases now use printf "%02d" formatting to match integer phases. Before: 6.1-01-PLAN.md vs 06-04-PLAN.md (inconsistent) After: 06.1-01-PLAN.md vs 06-04-PLAN.md (consistent) Closes #51 Co-Authored-By: Claude Opus 4.5 --- commands/gsd/insert-phase.md | 4 ++-- get-shit-done/templates/milestone-archive.md | 2 +- get-shit-done/templates/roadmap.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/gsd/insert-phase.md b/commands/gsd/insert-phase.md index 1f5509e65..c05dc5a89 100644 --- a/commands/gsd/insert-phase.md +++ b/commands/gsd/insert-phase.md @@ -104,7 +104,7 @@ Examples: - Phase 72 with 72.1 → next is 72.2 - Phase 72 with 72.1, 72.2 → next is 72.3 -Store as: `decimal_phase="${after_phase}.${next_decimal}"` +Store as: `decimal_phase="$(printf "%02d" $after_phase).${next_decimal}"` @@ -115,7 +115,7 @@ slug=$(echo "$description" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' ``` Phase directory name: `{decimal-phase}-{slug}` -Example: `72.1-fix-critical-auth-bug` +Example: `06.1-fix-critical-auth-bug` (phase 6 insertion) diff --git a/get-shit-done/templates/milestone-archive.md b/get-shit-done/templates/milestone-archive.md index 2b4e31954..bd1997c8c 100644 --- a/get-shit-done/templates/milestone-archive.md +++ b/get-shit-done/templates/milestone-archive.md @@ -47,7 +47,7 @@ Plans: Plans: -- [x] 2.1-01: Patch auth vulnerability +- [x] 02.1-01: Patch auth vulnerability **Details:** {{PHASE_DETAILS_FROM_ROADMAP}} diff --git a/get-shit-done/templates/roadmap.md b/get-shit-done/templates/roadmap.md index 6c547a34e..5e7a9bf4f 100644 --- a/get-shit-done/templates/roadmap.md +++ b/get-shit-done/templates/roadmap.md @@ -63,7 +63,7 @@ Plans: **Plans**: 1 plan Plans: -- [ ] 2.1-01: [Description] +- [ ] 02.1-01: [Description] ### Phase 3: [Name] **Goal**: [What this phase delivers]