Skip to content

Commit dd52793

Browse files
committed
Bug fixes
1 parent c8a6f55 commit dd52793

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

.github/workflows/fix-remote-pr.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ jobs:
356356

357357
- name: Apply AI fixes using Claude Agent SDK with Skills
358358
if: steps.prepare.outputs.should-skip != 'true'
359-
id: claude-fix
359+
id: fix
360360
working-directory: target-repo
361361
run: |
362362
# Apply fixes using skills from .claude/skills/
@@ -489,8 +489,8 @@ jobs:
489489
"type": "bot_fix",
490490
"repo": "${{ github.event.inputs.target_repo }}",
491491
"pr_number": ${{ github.event.inputs.pr_number }},
492-
"pr_title": "${{ steps.pr-details.outputs.title }}",
493-
"pr_author": "${{ steps.pr-details.outputs.author }}",
492+
"pr_title": "${{ steps.pr-details.outputs.pr-title }}",
493+
"pr_author": "${{ steps.pr-details.outputs.pr-author }}",
494494
"pr_url": "https://github.com/${{ github.event.inputs.target_repo }}/pull/${{ github.event.inputs.pr_number }}",
495495
"timestamp": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")",
496496
"workflow_run_id": "${{ github.run_id }}",
@@ -543,7 +543,7 @@ jobs:
543543
continue-on-error: true
544544

545545
- name: Check for changes and push
546-
if: steps.prepare-prompt.outputs.should-skip != 'true'
546+
if: steps.prepare.outputs.should-skip != 'true'
547547
id: push-fixes
548548
working-directory: target-repo
549549
run: |
@@ -569,11 +569,11 @@ jobs:
569569
git add -A
570570
571571
cat > /tmp/commit-message.txt <<EOF
572-
Fix ${{ steps.analyze.outputs.primary-type }} failures after dependency updates
572+
Fix ${{ steps.analyze.outputs.failure-type }} failures after dependency updates
573573
574574
Automated fixes applied by AI Engineering Maintenance Bot
575575
576-
Fixes: ${{ steps.analyze.outputs.failed-names }}
576+
Fixes: ${{ steps.analyze.outputs.failed-check-names }}
577577
578578
Co-authored-by: AI Engineering Maintenance Bot <aieng-bot@vectorinstitute.ai>
579579
EOF
@@ -596,7 +596,7 @@ jobs:
596596
run: |
597597
REPO="${{ github.event.inputs.target_repo }}"
598598
PR_NUMBER="${{ github.event.inputs.pr_number }}"
599-
FAILURE_TYPE="${{ steps.analyze.outputs.primary-type }}"
599+
FAILURE_TYPE="${{ steps.analyze.outputs.failure-type }}"
600600
601601
# Read the fix summary if available
602602
FIX_SUMMARY=""
@@ -628,7 +628,7 @@ jobs:
628628
GH_TOKEN: ${{ secrets.ORG_ACCESS_TOKEN }}
629629

630630
- name: Wait for checks to complete
631-
if: steps.apply-fix.outcome == 'success'
631+
if: steps.fix.outcome == 'success'
632632
id: wait-checks
633633
run: |
634634
REPO="${{ github.event.inputs.target_repo }}"

src/aieng_bot/_cli/commands/classify.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,17 @@ def escape_for_bash(s: str) -> str:
5959
reasoning_escaped = escape_for_bash(result.reasoning)
6060
action_escaped = escape_for_bash(result.recommended_action)
6161

62-
# Use console.print with highlight=False to output plain text for GitHub Actions
63-
console.print(f"failure-type={result.failure_type.value}", highlight=False)
64-
console.print(f"confidence={result.confidence}", highlight=False)
65-
console.print(f"reasoning={reasoning_escaped}", highlight=False)
66-
console.print(
67-
f"failed-check-names={','.join(result.failed_check_names)}", highlight=False
62+
# Create a stdout console for GitHub Actions output (stderr console is used for logging)
63+
stdout_console = Console(stderr=False, highlight=False)
64+
65+
# Output to stdout for GitHub Actions to capture
66+
stdout_console.print(f"failure-type={result.failure_type.value}")
67+
stdout_console.print(f"confidence={result.confidence}")
68+
stdout_console.print(f"reasoning={reasoning_escaped}")
69+
stdout_console.print(
70+
f"failed-check-names={','.join(result.failed_check_names)}"
6871
)
69-
console.print(f"recommended-action={action_escaped}", highlight=False)
72+
stdout_console.print(f"recommended-action={action_escaped}")
7073

7174

7275
def _log_summary(result: ClassificationResult) -> None:

0 commit comments

Comments
 (0)