NarratoAI/.github/workflows/codeReview.yml

25 lines
569 B
YAML

name: Code Review
permissions:
contents: read
pull-requests: write
on:
# 在提合并请求的时候触发
pull_request:
types: [opened, reopened]
workflow_dispatch:
jobs:
codeReview:
runs-on: ubuntu-latest
steps:
- name: GPT代码逻辑检查
uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_ENDPOINT: https://api.siliconflow.cn/v1
MODEL: deepseek-ai/DeepSeek-V3
LANGUAGE: Chinese