Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

feat: Add GitHub Actions check status to AI code reviewer

LearningCircuit53280c98c157
diff --git a/github/scripts/ai-reviewer.sh b/github/scripts/ai-reviewer.sh
index 46e15127fd..789ccf823e 100755
--- a/github/scripts/ai-reviewer.sh
+++ b/github/scripts/ai-reviewer.sh
@@ -49,6 +49,19 @@ if [ -n "$PR_NUMBER" ] && [ -n "$REPO_FULL_NAME" ] && [ -n "$GITHUB_TOKEN" ]; th
--jq '.[] | select(.body | startswith("## 🤖 AI Code Review")) | "### Previous Review (" + .created_at + "):\n" + .body + "\n---\n"' 2>/dev/null | head -c 50000 || echo "")
fi
+# Fetch GitHub Actions check runs status (if PR_NUMBER and REPO_FULL_NAME are set)
+CHECK_RUNS_STATUS=""
+if [ -n "$PR_NUMBER" ] && [ -n "$REPO_FULL_NAME" ] && [ -n "$GITHUB_TOKEN" ]; then
+ # Get the head SHA of the PR
+ HEAD_SHA=$(gh api "repos/$REPO_FULL_NAME/pulls/$PR_NUMBER" --jq '.head.sha' 2>/dev/null || echo "")
+
+ if [ -n "$HEAD_SHA" ]; then
+ # Fetch check runs for this commit
+ CHECK_RUNS_STATUS=$(gh api "repos/$REPO_FULL_NAME/commits/$HEAD_SHA/check-runs" \
+ --jq '.check_runs[] | "- **\(.name)**: \(.status)\(if .conclusion then " (\(.conclusion))" else "" end)"' 2>/dev/null || echo "")
+ fi
+fi
+
# Create the JSON request with proper escaping using jq
# Write diff to temporary file to avoid "Argument list too long" error
DIFF_FILE=$(mktemp)
@@ -64,6 +77,16 @@ Focus Areas:
- Best Practices: Ensure adherence to coding standards, proper patterns, type safety, dead code removal
"
+# Add GitHub Actions check status if available
+if [ -n "$CHECK_RUNS_STATUS" ]; then
+ PROMPT_PREFIX="${PROMPT_PREFIX}
+GitHub Actions Check Status:
+$CHECK_RUNS_STATUS
+
+Please consider any failed or pending checks in your review. If tests are failing, investigate whether the code changes might be the cause.
+"
+fi
+
# Add previous reviews context if available
if [ -n "$PREVIOUS_REVIEWS" ]; then
PROMPT_PREFIX="${PROMPT_PREFIX}