Skip to content

fix(#1145): new-feature.sh derives the branch name with the slugify() rule - #1156

Merged
admarble merged 2 commits into
mainfrom
feature/1145-bug-worktree-new-feature-sh-and-sequant-run-derive
Sep 25, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/1145-bug-worktree-new-feature-sh-and-sequant-run-derive

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • new-feature.sh now names the branch with the slugify() rule (slug cut at 50, no whole-branch 58 cut), so sequant run finds the script's branch.
  • Adds --print-branch <N> <title> (network-free) and a gate test that runs it in real bash and compares to slugify() for a long-slug/dash-at-50 title, a short title, and leading punctuation.

AC verification

AC Status Evidence
AC-1 ✅ templates/scripts/new-feature.sh branch_name_for; 58 cut removed
AC-2 ✅ src/lib/workflow/__tests__/new-feature-branch-parity.test.ts
AC-3 ✅ marker below

Build, lint and full npm test pass (338 files, 8383 tests).

Mutation-verified: AC-2 — restored cut -c1-58 on the slug; new-feature-branch-parity.test.ts long-slug case failed; restored.

Closes #1145

🤖 Generated with Claude Code

@admarble
admarble merged commit 9e435b1 into main Sep 25, 2026
7 checks passed
@admarble
admarble deleted the feature/1145-bug-worktree-new-feature-sh-and-sequant-run-derive branch September 25, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(worktree): new-feature.sh and sequant run derive different branch names for the same issue

1 participant