添加 .gitea/workflows/code-review.yml
This commit is contained in:
21
.gitea/workflows/code-review.yml
Normal file
21
.gitea/workflows/code-review.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: ai-reviews
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
review:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Review code
|
||||||
|
uses: kekxv/AiReviewPR@v0.0.6
|
||||||
|
with:
|
||||||
|
model: 'deepseek-r1:1.5b'
|
||||||
|
host: '<ollama host>'
|
||||||
|
REVIEW_PULL_REQUEST: false
|
||||||
Reference in New Issue
Block a user