Skip to content

Commit 66d6405

Browse files
committed
支持评论触发 DeepSeek 双语审查
1 parent dc578d8 commit 66d6405

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎.github/workflows/deepseek_view.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
pull_request_target:
44
types:
55
- opened # Triggers when a PR is opened
6+
issue_comment:
7+
types:
8+
- created # Triggers when a comment is created on a PR
69

710
# fix: GraphQL: Resource not accessible by integration (addComment) error
811
permissions:
@@ -18,5 +21,11 @@ jobs:
1821
uses: hustcer/deepseek-review@v1
1922
with:
2023
chat-token: ${{ secrets.DEEPSEEK_CHAT_TOKEN }}
24+
sys-prompt: >-
25+
You are a professional code review assistant. Review pull request changes for
26+
bugs, security vulnerabilities, regressions, and maintainability issues. Report
27+
only actionable, evidence-based findings. For every finding and review summary,
28+
write both Simplified Chinese and English, with equivalent meaning, in this format:
29+
中文:<review comment>\nEnglish: <equivalent review comment>
2130
watch-mention: "@github-actions"
2231
allowed-associations: 'OWNER,MEMBER,COLLABORATOR,CONTRIBUTOR'

0 commit comments

Comments
 (0)