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 : Deepseek Code Review
2+ on :
3+ pull_request_target :
4+ types :
5+ - opened # Triggers when a PR is opened
6+ issue_comment :
7+ types :
8+ - created
9+
10+ permissions :
11+ contents : read
12+ pull-requests : write
13+
14+ jobs :
15+ setup-deepseek-review :
16+ if : |
17+ github.event_name == 'pull_request_target' ||
18+ (
19+ github.event_name == 'issue_comment' &&
20+ github.event.issue.pull_request &&
21+ startsWith(github.event.comment.body, '/review')
22+ )
23+ runs-on : ubuntu-latest
24+ name : Code Review
25+ steps :
26+ - name : Checkout deepseek-review scripts
27+ uses : actions/checkout@v4
28+ with :
29+ repository : hustcer/deepseek-review
30+ path : .tmp/deepseek-review
31+
32+ - name : Setup Nu
33+ uses : hustcer/setup-nu@v3.23
34+ with :
35+ version : 0.112.2
36+
37+ - name : DeepSeek Code Review
38+ shell : nu {0}
39+ env :
40+ REVIEW_PR_NUMBER : ${{ github.event.pull_request.number || github.event.issue.number }}
41+ REVIEW_REPO : ${{ github.repository }}
42+ REVIEW_TOKEN : ${{ secrets.DEEPSEEK_CHAT_TOKEN }}
43+ REVIEW_GITHUB_TOKEN : ${{ github.token }}
44+ REVIEW_MODEL : deepseek-v4-flash
45+ run : |
46+ const NU_LIB_DIRS = [ '${{ github.workspace }}/.tmp/deepseek-review/nu' ]
47+ use review.nu *
48+
49+ deepseek-review $env.REVIEW_TOKEN --model $env.REVIEW_MODEL --repo $env.REVIEW_REPO --pr-number $env.REVIEW_PR_NUMBER --gh-token $env.REVIEW_GITHUB_TOKEN
You can’t perform that action at this time.
0 commit comments