🎯 Target runtime: es2023 (Node >= 20)
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}