Merge pull request #1408 from Tibsfox/fix/decimal-phase-regex-1402

fix(branching): capture decimal phase numbers in commit regex
This commit is contained in:
Tom Boucher
2026-04-01 12:15:16 -04:00
committed by GitHub
2 changed files with 36 additions and 1 deletions

View File

@@ -255,7 +255,7 @@ function cmdCommit(cwd, message, files, raw, amend, noVerify) {
let branchName = null;
if (config.branching_strategy === 'phase') {
// Determine which phase we're committing for from the file paths
const phaseMatch = (files || []).join(' ').match(/(\d+)-/);
const phaseMatch = (files || []).join(' ').match(/(\d+(?:\.\d+)*)-/);
if (phaseMatch) {
const phaseNum = phaseMatch[1];
const phaseInfo = findPhaseInternal(cwd, phaseNum);