Files
cody-crm/.github/workflows/llm-code-review.yml
wangziqi 72e2110987
Some checks failed
Synchronize to Gitee / repo-sync (push) Has been cancelled
Typos Checking / Spell Check with Typos (push) Has been cancelled
chore: initial commit
2026-06-23 11:56:23 +08:00

42 lines
1.2 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: LLM Code Review
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
jobs:
llm-code-review:
runs-on: ubuntu-latest
steps:
# 1⃣ 拉代码
- name: Checkout code
uses: actions/checkout@v3
# 2⃣ LLM Code Review发表评论
- name: Run LLM Code Review
id: llm-code-review
uses: fit2cloud/LLM-CodeReview-Action@main
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
OPENAI_API_KEY: ${{ secrets.ALIYUN_LLM_API_KEY }}
OPENAI_API_ENDPOINT: https://dashscope.aliyuncs.com/compatible-mode/v1
MODEL: qwen3-coder-plus
LANGUAGE: Chinese
PROMPT: |
你是资深代码审查专家,严格检查以下代码差异。
⚠️【必须遵守】
- 只在代码质量存在问题时发表评论。
- 不要解释、不添加多余文本。
- 审查应专注于以下内容:逻辑错误、代码规范、可读性、性能优化等。
temperature: 0.2
top_p: 1
MAX_PATCH_LENGTH: 50000
IGNORE_PATTERNS: "/node_modules,*.md,/dist,/.github"
FILE_PATTERNS: "*.java"