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
echo "::notice title=AI Analysis Complete::Analysis completed for $EVENT_NAME event. Check job summary for detailed results."
363
+
364
+
# Parse analysis results for security issues and create annotations
365
+
if grep -qi "security\|vulnerability\|exploit\|xss\|sql injection\|csrf" ai_analysis_result.txt 2>/dev/null; then
366
+
echo "::warning title=Security Review Required::AI analysis detected potential security concerns. Please review the analysis details in the job summary."
367
+
fi
368
+
369
+
# Check for coding standards issues
370
+
if grep -qi "coding standard\|psr\|wordpress standard" ai_analysis_result.txt 2>/dev/null; then
371
+
echo "::notice title=Coding Standards::AI analysis found coding standards recommendations. Check job summary for details."
372
+
fi
373
+
374
+
# Check for performance issues
375
+
if grep -qi "performance\|optimization\|slow\|inefficient" ai_analysis_result.txt 2>/dev/null; then
376
+
echo "::notice title=Performance Recommendations::AI analysis found performance optimization opportunities. Check job summary for details."
377
+
fi
378
+
379
+
# Extract specific line-by-line feedback if available
380
+
if grep -E "line [0-9]+|:[0-9]+:" ai_analysis_result.txt 2>/dev/null; then
381
+
echo "::notice title=Line-Specific Feedback::AI analysis provided line-specific recommendations. See job summary for details."
382
+
fi
383
+
384
+
# Check analysis length and create appropriate annotation
385
+
ANALYSIS_SIZE=$(wc -c < ai_analysis_result.txt)
386
+
if [ "$ANALYSIS_SIZE" -gt 1000 ]; then
387
+
echo "::notice title=Detailed Analysis Available::Comprehensive AI analysis completed ($ANALYSIS_SIZE characters). Full results available in job summary."
388
+
else
389
+
echo "::notice title=Quick Analysis Complete::AI analysis completed with brief feedback. See job summary for details."
0 commit comments