Milestone 3
This commit is contained in:
@ -203,23 +203,15 @@ log_info "Snapshot created: $SNAPSHOT_SHA"
|
||||
# ============================================
|
||||
log_section "Test 4: Save Command"
|
||||
|
||||
log_info "Creating workstream (manual for testing)..."
|
||||
cat > .onx/workstreams.json << 'EOF'
|
||||
{
|
||||
"workstreams": {
|
||||
"test-feature": {
|
||||
"name": "test-feature",
|
||||
"description": "Integration test feature",
|
||||
"base_branch": "main",
|
||||
"commits": [],
|
||||
"created": "2025-01-01T00:00:00Z",
|
||||
"updated": "2025-01-01T00:00:00Z",
|
||||
"status": "active"
|
||||
}
|
||||
},
|
||||
"current_workstream": "test-feature"
|
||||
}
|
||||
EOF
|
||||
# First, we need to create an initial Git commit for the base branch
|
||||
log_info "Creating initial Git commit..."
|
||||
git config user.email "test@example.com"
|
||||
git config user.name "Test User"
|
||||
git add main.py
|
||||
git commit -m "Initial commit" >/dev/null 2>&1
|
||||
|
||||
log_info "Creating workstream using onx new..."
|
||||
"$ONX_BIN" new test-feature
|
||||
|
||||
log_info "Saving first commit..."
|
||||
"$ONX_BIN" save -m "Add hello world program"
|
||||
|
Reference in New Issue
Block a user