bmad-auto-copilot 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/bmad-loop.sh +2 -2
package/package.json
CHANGED
package/templates/bmad-loop.sh
CHANGED
|
@@ -360,11 +360,11 @@ for ((iteration=1; iteration<=MAX_ITERATIONS; iteration++)); do
|
|
|
360
360
|
"code-review")
|
|
361
361
|
log "[ACTION] CODE REVIEW (Dev Agent → new session)" "yellow"
|
|
362
362
|
# Capture story key before review (it's in 'review' state now)
|
|
363
|
-
|
|
363
|
+
review_story_key=$(get_story_key_for_state "review")
|
|
364
364
|
invoke_copilot "bmad-agent-bmm-dev" "$PROMPT_DIR/code-review.md" "code-review"
|
|
365
365
|
|
|
366
366
|
# Only commit if the story actually moved to 'done'
|
|
367
|
-
|
|
367
|
+
current_state=$(grep -E "^\s*${review_story_key}:" "$SPRINT_STATUS_PATH" | sed 's/.*: *//' | tr -d ' \r')
|
|
368
368
|
if [[ "$current_state" == "done" ]]; then
|
|
369
369
|
log "[VERIFIED] Story $review_story_key confirmed DONE" "green"
|
|
370
370
|
invoke_git_commit "$review_story_key"
|