Skip to content

feat(#41): Add --stash flag to new-feature.sh - #47

Merged
admarble merged 1 commit into
mainfrom
feature/41-feat-add-stash-flag-to-new-feature-sh
Jan 10, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/41-feat-add-stash-flag-to-new-feature-sh

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add --stash flag support with flexible argument positioning (before or after issue number)
  • Auto-stash uncommitted changes (including untracked files) with descriptive message WIP before issue #N
  • Update error message to mention --stash option for improved developer experience

Test Plan

  • Run ./scripts/dev/new-feature.sh 99 with clean working tree - should work normally
  • Run ./scripts/dev/new-feature.sh 99 with uncommitted changes - should show error with --stash hint
  • Run ./scripts/dev/new-feature.sh 99 --stash with uncommitted changes - should auto-stash and continue
  • Run ./scripts/dev/new-feature.sh --stash 99 - verify flag works in any position
  • Check git stash list after auto-stash - verify message format WIP before issue #N

Closes #41

🤖 Generated with Claude Code

- Add flexible argument parsing to support --stash flag in any position
- Auto-stash uncommitted changes with descriptive message when flag used
- Include untracked files in stash for complete working directory capture
- Update error message to mention --stash option for better UX
- Update usage documentation with --stash examples

Closes #41

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

feat: Add --stash flag to new-feature.sh

1 participant