-
-
Notifications
You must be signed in to change notification settings - Fork 446
31 lines (29 loc) · 1.13 KB
/
Copy pathdeepseek_view.yml
File metadata and controls
31 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Deepseek Code Review
on:
pull_request_target:
types:
- opened # Triggers when a PR is opened
issue_comment:
types:
- created # Triggers when a comment is created on a PR
# fix: GraphQL: Resource not accessible by integration (addComment) error
permissions:
pull-requests: write
jobs:
setup-deepseek-review:
timeout-minutes: 30
runs-on: ubuntu-latest
name: Code Review
steps:
- name: DeepSeek Code Review
uses: hustcer/deepseek-review@v1
with:
chat-token: ${{ secrets.DEEPSEEK_CHAT_TOKEN }}
sys-prompt: >-
You are a professional code review assistant. Review pull request changes for
bugs, security vulnerabilities, regressions, and maintainability issues. Report
only actionable, evidence-based findings. For every finding and review summary,
write both Simplified Chinese and English, with equivalent meaning, in this format:
中文:<review comment>\nEnglish: <equivalent review comment>
watch-mention: "@github-actions"
allowed-associations: 'OWNER,MEMBER,COLLABORATOR,CONTRIBUTOR'