Skip to content

Commit f106e8b

Browse files
Create code_review.yml
1 parent 197a2b8 commit f106e8b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/code_review.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Code Review with ollama
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
permissions:
8+
actions: write # Necessary to cancel workflow executions
9+
checks: write # Necessary to write reports
10+
pull-requests: write # Necessary to comment on PRs
11+
contents: read
12+
packages: write
13+
jobs:
14+
code_review:
15+
runs-on: self-hosted
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Clone another repository
22+
run: git clone $REPO_URL
23+
24+
- name: Code Review
25+
uses: tomisacat/ai_code_review@main
26+
with:
27+
GITHUB_TOKEN: ${{ secrets.TOKEN }}
28+
OLLAMA_ADDRESS: ${{ secrets.OLLAMA_ADDRESS }}
29+
exclude: "yarn.lock,dist/**"

0 commit comments

Comments
 (0)