Commit 8887fec 1 parent 306ca56 commit 8887fec Copy full SHA for 8887fec
File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
- name : AI Code Review
1
+ name : AI Code Reviewer
2
2
3
3
on :
4
4
pull_request :
7
7
jobs :
8
8
ai_review :
9
9
runs-on : ubuntu-latest
10
+ permissions :
11
+ contents : read
12
+ pull-requests : write
10
13
11
14
steps :
15
+ - name : Generate App token
16
+ id : generated_token
17
+ uses : tibdex/github-app-token@v2.1.0
18
+ with :
19
+ app_id : ${{ secrets.APP_ID }}
20
+ private_key : ${{ secrets.PRIVATE_KEY }}
21
+
12
22
- name : Checkout Repository
13
23
uses : actions/checkout@v3
14
24
@@ -18,11 +28,13 @@ jobs:
18
28
python-version : ' 3.x'
19
29
20
30
- name : Install Dependencies
21
- run : pip install -r requirements.txt
31
+ run : |
32
+ pip install -r requirements.txt
33
+ pip install PyGithub
22
34
23
35
- name : Run AI Code Reviewer
24
36
env :
25
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ GITHUB_TOKEN : ${{ steps.generated_token.outputs.token }}
26
38
GITHUB_REPOSITORY : ${{ github.repository }}
27
39
PR_NUMBER : ${{ github.event.pull_request.number }}
28
40
run : python copilot.py
You can’t perform that action at this time.
0 commit comments