From dad0bc05f1931794aec6c3c3c4ff651a44d356af Mon Sep 17 00:00:00 2001 From: Theminacious Date: Fri, 9 Jan 2026 01:21:55 +0530 Subject: [PATCH 1/4] test: add demo file to trigger actions --- test_demo.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test_demo.py diff --git a/test_demo.py b/test_demo.py new file mode 100644 index 0000000..477ac73 --- /dev/null +++ b/test_demo.py @@ -0,0 +1,14 @@ +# Test file to trigger AGI Engineer workflows +import os # unused import +import sys # unused import + + +def func(a, b): # poor name, unused var + temp = a + b # unused variable + result = a * b + return result + +# Useless f-string +message = f"Hello World" + +print(message) From 65183f4c2422ec02da3ec18fb9b1ba2234f7fc65 Mon Sep 17 00:00:00 2001 From: Theminacious Date: Fri, 9 Jan 2026 01:31:09 +0530 Subject: [PATCH 2/4] fix: update upload-artifact to v4 --- .github/workflows/code-quality.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index d7fd270..a87456d 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -134,7 +134,7 @@ jobs: fi - name: Upload analysis artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: agi-engineer-analysis path: analysis.txt From 9b09916a8da0e5130a7c74eaef95023df716b036 Mon Sep 17 00:00:00 2001 From: Theminacious Date: Fri, 9 Jan 2026 01:33:34 +0530 Subject: [PATCH 3/4] fix: replace multiline output with file-based approach for PR comment --- .github/workflows/code-quality.yml | 58 +++++++++++++++++------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index a87456d..4a79ff1 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -60,35 +60,45 @@ jobs: echo "needs_review=$NEEDS_REVIEW" >> $GITHUB_OUTPUT # Create summary for comment - { - echo "SUMMARY<> $GITHUB_OUTPUT + cat > pr_comment.md <<'COMMENT_EOF' + ## 🤖 AGI Engineer Analysis Results + + **Total Issues Found:** TOTAL_ISSUES_PLACEHOLDER + + SAFE_ISSUES_PLACEHOLDER + NEEDS_REVIEW_PLACEHOLDER + + ### Details + ``` + ANALYSIS_DETAILS_PLACEHOLDER + ``` + + --- + *Run locally:* `python3 agi_engineer_v3.py . --smart --ai` + COMMENT_EOF + + # Replace placeholders + sed -i "s/TOTAL_ISSUES_PLACEHOLDER/$TOTAL_ISSUES/g" pr_comment.md + if [ "$SAFE_ISSUES" != "0" ]; then + sed -i "s/SAFE_ISSUES_PLACEHOLDER/✅ **Safe to Auto-Fix:** $SAFE_ISSUES issues/g" pr_comment.md + else + sed -i "s/SAFE_ISSUES_PLACEHOLDER//g" pr_comment.md + fi + if [ "$NEEDS_REVIEW" != "0" ]; then + sed -i "s/NEEDS_REVIEW_PLACEHOLDER/⚠️ **Needs Review:** $NEEDS_REVIEW issues/g" pr_comment.md + else + sed -i "s/NEEDS_REVIEW_PLACEHOLDER//g" pr_comment.md + fi + sed -i "/ANALYSIS_DETAILS_PLACEHOLDER/{r analysis.txt + d;}" pr_comment.md - name: Comment on PR uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const summary = `${{ steps.extract.outputs.SUMMARY }}`; + const fs = require('fs'); + const commentBody = fs.readFileSync('pr_comment.md', 'utf8'); // Find existing comment const comments = await github.rest.issues.listComments({ @@ -102,8 +112,6 @@ jobs: comment.body.includes('AGI Engineer Analysis') ); - const commentBody = summary; - if (botComment) { // Update existing comment await github.rest.issues.updateComment({ From 1e120b3bbf92e899e083195d4840edd2b1b0187a Mon Sep 17 00:00:00 2001 From: Theminacious Date: Fri, 9 Jan 2026 01:38:04 +0530 Subject: [PATCH 4/4] test: trigger workflow with AI enabled --- test_demo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test_demo.py b/test_demo.py index 477ac73..392c580 100644 --- a/test_demo.py +++ b/test_demo.py @@ -12,3 +12,4 @@ def func(a, b): # poor name, unused var message = f"Hello World" print(message) +# Updated for AI analysis test