🎯 Target runtime: es2024 (Node >= 24)
Utilities for branch info depending on env (GitHub Workflow or Local)
the stageId is extracted from the branchname by the pattern /^#(\d+)-(.*)/
- When Master -->
master - When Local or nonPr github workflow -->
xx#{stageId} - When Github PR -->
pr#{stageId}