fix: use IP addresses for internal services
Some checks failed
Test / rust-fmt-check (pull_request) Successful in 2m29s
Test / frontend-tests (pull_request) Successful in 1m13s
Test / frontend-typecheck (pull_request) Successful in 1m15s
Test / rust-clippy (pull_request) Successful in 19m59s
Test / rust-tests (pull_request) Successful in 19m51s
PR Review Automation / review (pull_request) Has been cancelled
Some checks failed
Test / rust-fmt-check (pull_request) Successful in 2m29s
Test / frontend-tests (pull_request) Successful in 1m13s
Test / frontend-typecheck (pull_request) Successful in 1m15s
Test / rust-clippy (pull_request) Successful in 19m59s
Test / rust-tests (pull_request) Successful in 19m51s
PR Review Automation / review (pull_request) Has been cancelled
This commit is contained in:
parent
bb296a226c
commit
0e5ee6dc1b
@ -34,7 +34,7 @@ jobs:
|
|||||||
- name: Analyze with Ollama
|
- name: Analyze with Ollama
|
||||||
if: steps.diff.outputs.diff_size > '0'
|
if: steps.diff.outputs.diff_size > '0'
|
||||||
env:
|
env:
|
||||||
OLLAMA_URL: https://ollama-ui.tftsr.com/ollama/v1
|
OLLAMA_URL: http://172.0.0.29:3000/ollama/v1
|
||||||
API_KEY: ${{ secrets.OLLAMA_API_KEY }}
|
API_KEY: ${{ secrets.OLLAMA_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
DIFF_CONTENT=$(cat /tmp/pr_diff.txt)
|
DIFF_CONTENT=$(cat /tmp/pr_diff.txt)
|
||||||
@ -65,7 +65,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ -f "/tmp/pr_review.txt" ] && [ -s "/tmp/pr_review.txt" ]; then
|
if [ -f "/tmp/pr_review.txt" ] && [ -s "/tmp/pr_review.txt" ]; then
|
||||||
REVIEW_BODY=$(cat /tmp/pr_review.txt | head -c 65536)
|
REVIEW_BODY=$(cat /tmp/pr_review.txt | head -c 65536)
|
||||||
curl -s -X POST "https://gogs.tftsr.com/api/v1/repos/sarman/tftsr-devops_investigation/pulls/$PR_NUMBER/reviews" \
|
curl -s -X POST "http://172.0.0.29:3000/api/v1/repos/sarman/tftsr-devops_investigation/pulls/$PR_NUMBER/reviews" \
|
||||||
-H "Authorization: token $TF_TOKEN" \
|
-H "Authorization: token $TF_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"body\": \"🤖 Automated PR Review:\n\n$REVIEW_BODY\n\n---\n*this is an automated review from Ollama*\", \"event\": \"COMMENT\"}"
|
-d "{\"body\": \"🤖 Automated PR Review:\n\n$REVIEW_BODY\n\n---\n*this is an automated review from Ollama*\", \"event\": \"COMMENT\"}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user