File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Create an automated AI code review that runs when a PR is labeled with 'code-review'
2
+ name : code-review
3
+
4
+ on :
5
+ pull_request :
6
+ types : [ labeled ]
7
+
8
+ jobs :
9
+ get-code-review :
10
+ runs-on : ubuntu-latest
11
+ if : contains(github.event.pull_request.labels.*.name, 'code-review') # || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
12
+ permissions :
13
+ contents : read
14
+ pull-requests : write
15
+ steps :
16
+ - uses : MannLabs/alphashared/actions/code-review@v1
17
+ continue-on-error : true
18
+ with :
19
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
+ ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY }}
21
+ CODE_REVIEW_PROMPT : ${{ secrets.CODE_REVIEW_PROMPT }}
22
+ CODE_REVIEW_SYSTEM_MESSAGE : ${{ secrets.CODE_REVIEW_SYSTEM_MESSAGE }}
23
+ GITHUB_EVENT_NUMBER : ${{ github.event.number }}
24
+ EXCLUDED_EXTENSIONS : " ipynb;js"
You can’t perform that action at this time.
0 commit comments