Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
working on ollama.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robert2411 committed Oct 12, 2024
1 parent 7b590a6 commit 83b1321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
for file in ${{ steps.get-modified-files.outputs.all_changed_files }}; do
file_content=$(cat $file)
modified_file_review=$(curl -s http://127.0.0.1:11434/api/generate -d '{"model": "codegemma", "prompt": "Review the following file:\n\n```\$file_content\n```", "stream": false}' | jq -r '.response')
modified_file_review=$(curl -s http://127.0.0.1:11434/api/generate -d '{"model": "codegemma", "prompt": "Review the following file:\n\n```\$file_content\n```", "stream": false}')
gh pr comment ${{ github.event.pull_request.number }} --body "Ollama Code Review for \`$file\`:\r\n\r\n$modified_file_review"
done
shell: bash

0 comments on commit 83b1321

Please sign in to comment.