Skip to content

Commit

Permalink
测试 ai review
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyunan committed Sep 18, 2024
1 parent ff222fe commit a661c75
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: AI Code Reviewer
uses: xiaotianhu/ai-codereviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.API2D_KEY }}
OPENAI_API_MODEL: "gpt-4o-mini" # Optional: defaults to "gpt-4"
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas
- name: Checkout Repo
uses: actions/checkout@v3
- name: Get latest AI Code Reviewer action
run: |
git clone https://github.com/xiaotianhu/ai-codereviewer.git
cd ai-codereviewer
git checkout main
git pull
- name: AI Code Reviewer
uses: ./ai-codereviewer
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.API2D_KEY }}
OPENAI_API_MODEL: "gpt-4o-mini"
exclude: "**/*.json, **/*.md"

0 comments on commit a661c75

Please sign in to comment.