File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : LLM PR Review
2+ permissions :
3+ contents : read
4+ pull-requests : write
5+ issues : write
6+ on :
7+ pull_request_review_comment :
8+ types : [created]
9+ pull_request_target :
10+ types : [opened, synchronize]
11+ env :
12+ CRATE_NAME : coman
13+ GITHUB_TOKEN : ${{ github.token }}
14+ RUST_BACKTRACE : 1
15+ RUSTFLAGS : " -Dwarnings"
16+
17+ jobs :
18+ review :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Get Access Token
22+ env :
23+ SERVICE_ACCOUNT_NAME : ${{ secrets.SERVICE_ACCOUNT_NAME}}
24+ SERVICE_ACCOUNT_PASSWORD : ${{ secrets.SERVICE_ACCOUNT_PASSWORD}}
25+ run : |
26+ export SDSC_VLLM_TOKEN=$(curl -X POST https://authentik-server-runai-codev-llm.inference.compute.datascience.ch/application/o/token/ \
27+ -H "Content-Type: application/x-www-form-urlencoded" \
28+ -d "grant_type=client_credentials&client_id=09BroBvREXFSYXBTkwse0PlOF5w1rmrk&username=$SERVICE_ACCOUNT_NAME&password=$SERVICE_ACCOUNT_PASSWORD"\
29+ |jq '.access_token')
30+ echo "SDSC_VLLM_TOKEN=$SDSC_VLLM_TOKEN"
31+
32+ - uses : presubmit/ai-reviewer@latest
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35+ LLM_API_KEY : ${{ env.SDSC_VLLM_TOKEN }}
36+ LLM_MODEL : " Qwen/Qwen3-Coder-30B-A3B-Instruct-FP8"
37+ LLM_PROVIDER : " ai-sdk"
38+ LLM_BASE_URL : " https://vllm-gateway-runai-codev-llm.inference.compute.datascience.ch/v1"
You can’t perform that action at this time.
0 commit comments