Merge pull request #3616 from gsd-build/fix/3599-bug-roadmap-get-phase-no-longer-matches-

fix(3599): preserve project-code prefix when looking up roadmap phases
This commit is contained in:
Tom Boucher
2026-05-15 23:04:32 -04:00
committed by GitHub
4 changed files with 217 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
type: Fixed
issue: 3599
---
**`roadmap get-phase PROJ-42` now matches `### Phase PROJ-42:` instead of returning `found: false`** — `cmdRoadmapGetPhase` now does a two-pass search when the caller passes a project-code-prefixed ID. The exact-escaped form (`### Phase PROJ-42:`) is tried first, and only falls back to the #3537 padding-tolerant numeric form (`### Phase 42:`) when the exact heading is not present. New helper `phaseMarkdownRegexSourceExact()` is added alongside the existing `phaseMarkdownRegexSource()` so callers that need the prefix-preserving path can opt in.