File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -22,29 +22,10 @@ jobs:
22
22
- name : Install dependencies
23
23
run : pip install google-generativeai requests PyGithub
24
24
25
- - name : Get PR diff
26
- id : diff
27
- env :
28
- GH_TOKEN : ${{ github.token }}
29
- run : |
30
- gh pr diff ${{ github.event.pull_request.number }} | sed '1,8d' > diff.txt # Remove the first 8 lines
31
- echo "DIFF=$(cat diff.txt)" >> $GITHUB_OUTPUT
32
-
33
- - name : Debug diff output
34
- run : echo "${{ steps.diff.outputs.DIFF }}"
35
-
36
- - name : Base64 encode and set DIFF environment variable
37
- run : |
38
- DELIMITER=$(openssl rand -hex 8)
39
- ENCODED_DIFF=$(echo "${{ steps.diff.outputs.DIFF }}" | base64)
40
- echo "INPUT_DIFF<<$DELIMITER" >> $GITHUB_ENV
41
- echo "$ENCODED_DIFF" >> $GITHUB_ENV
42
- echo "$DELIMITER" >> $GITHUB_ENV
43
-
44
25
- name : Run Gemini review script
45
26
env :
46
27
GEMINI_API_KEY : ${{ secrets.GEMINI_API_KEY }}
47
28
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
29
PR_NUMBER : ${{ github.event.pull_request.number }}
49
30
GITHUB_REPOSITORY : ${{ github.repository }}
50
- run : python ./hack/gemini_review.py "${{ steps.diff.outputs.DIFF }}"
31
+ run : python./hack/gemini_review.py
You can’t perform that action at this time.
0 commit comments