diff --git a/scripts/post-review-comment.sh b/scripts/post-review-comment.sh index 605ab7e..f0809a8 100644 --- a/scripts/post-review-comment.sh +++ b/scripts/post-review-comment.sh @@ -3,26 +3,16 @@ # # Usage: post-review-comment.sh # -# Reads review-result.json and review-output.txt from current directory. +# Reads review-output.txt from current directory. # Env: GH_TOKEN (or gh auth), GITHUB_REPOSITORY, PR_NUMBER set -e -RISK=$(jq -r '.risk // "FAILED"' review-result.json 2>/dev/null || echo "FAILED") REVIEW=$(cat review-output.txt 2>/dev/null || echo "LLM review output not available.") -case "$RISK" in - LOW) EMOJI="🟢" ;; - MEDIUM) EMOJI="🟡" ;; - HIGH) EMOJI="🔴" ;; - *) EMOJI="⚪" ;; -esac - cat > /tmp/review-comment.md <