Skip to content

Commit 106aaf4

Browse files
authored
Merge pull request #31 from LiteObject/feature/refactor_code
Refactor code review prompt for clarity and detail; comment out Ollam…
2 parents 95cfc3e + 6fe97ca commit 106aaf4

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/code-review.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ jobs:
6565
echo "Verifying model availability via API..."
6666
curl -s http://localhost:11434/api/tags | jq '.'
6767
68-
- name: Check Ollama API Health
69-
run: |
70-
if ! curl -sf http://localhost:11434/api/tags; then
71-
echo "Ollama API is not responding."
72-
exit 1
73-
fi
68+
# - name: Check Ollama API Health
69+
# run: |
70+
# if ! curl -sf http://localhost:11434/api/tags; then
71+
# echo "Ollama API is not responding."
72+
# exit 1
73+
# fi
7474

7575
- name: Wait for Ollama to be ready
7676
run: |
@@ -91,9 +91,16 @@ jobs:
9191
echo "No changes detected in the diff"
9292
DIFF="No code changes detected in this pull request."
9393
fi
94-
PROMPT="Please review the following code changes, summarize the changes, and provide a short feedback:\n\n$DIFF\n\nFeedback:"
94+
95+
PROMPT="You are an experienced software engineer reviewing a pull request. Carefully review the following code changes for correctness, clarity, maintainability, and potential issues. Summarize what was changed, point out any problems or improvements, and provide constructive, actionable feedback as a code reviewer would in a real PR review.
96+
97+
$DIFF
98+
99+
PR Review:"
100+
95101
echo "PROMPT:"
96102
echo "$PROMPT"
103+
97104
# Export PROMPT so it's available to later steps
98105
echo "PROMPT<<EOF" >> $GITHUB_ENV
99106
echo "$PROMPT" >> $GITHUB_ENV

0 commit comments

Comments
 (0)