Improve pre-push hook: suggest bd sync with auto-sync option
The pre-push hook now provides better guidance when beads JSONL has uncommitted changes: - Interactive terminals: Prompts to auto-run 'bd sync' (y/N) - Non-interactive/CI: Shows 'bd sync' command to run - Fallback: Manual git commands if bd not available This addresses the UX issue where users weren't sure they should run 'bd sync' instead of manual git commands. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Improved
|
||||
|
||||
- **Git Pre-Push Hook**: Better error messaging and auto-sync option
|
||||
- Error message now suggests `bd sync` instead of manual git commands
|
||||
- Interactive prompt offers to run `bd sync` automatically
|
||||
- Falls back to manual instructions in non-interactive terminals or when bd is unavailable
|
||||
- Improves user experience when beads JSONL has uncommitted changes
|
||||
|
||||
## [0.24.2] - 2025-11-22
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in New Issue
Block a user