We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f21922f commit ead8754Copy full SHA for ead8754
.github/workflows/code-review.yml
@@ -56,12 +56,15 @@ jobs:
56
57
# GPT 리뷰 결과 추출
58
review_feedback = response.choices[0].message.content
59
- print(review_feedback)
+
60
+ # 리뷰 결과를 gpt_review.txt 파일에 저장
61
+ with open('gpt_review.txt', 'w') as output_file:
62
+ output_file.write(review_feedback)
63
EOF
64
65
- name: Post review comment on PR
66
run: |
- REVIEW_COMMENT=$(python -c 'import json; print(open("gpt_review.txt").read())')
67
+ REVIEW_COMMENT=$(cat gpt_review.txt)
68
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
69
-d "{\"body\": \"${REVIEW_COMMENT}\"}" \
70
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
0 commit comments