You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add item lifecycle state machine with location-aware push strategy
Formalize the wanted item lifecycle as a first-class state machine so
the TUI and command handlers share one source of truth for valid
transitions. Add location detection (local/origin/upstream) and
choose the minimum push operation per transition in PR mode.
- lifecycle.go: ValidateTransition(), DetectItemLocation(), ResolvePushTarget()
- lifecycle_test.go: table-driven tests for all transitions + push strategies
- dolt.go: QueryItemStatusAsOf() using AS OF syntax
- branch_helpers.go: location field, location-aware Push(), PR description refresh
- pr_refresh.go: auto-update GitHub/DoltHub PR body after branch push
- 8 command handlers: replace inline status checks with ValidateTransition()
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments