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 1330aeb commit a84d9d0Copy full SHA for a84d9d0
.github/workflows/code-review.yml
@@ -65,7 +65,8 @@ jobs:
65
- name: Post review comment on PR
66
run: |
67
REVIEW_COMMENT=$(cat gpt_review.txt)
68
- echo "Review Comment: $REVIEW_COMMENT" # 코멘트 내용 확인
+ echo "Review Comment: $REVIEW_COMMENT"
69
+ REVIEW_COMMENT_ESCAPED=$(echo "${REVIEW_COMMENT}" | python -c 'import json,sys; print(json.dumps(sys.stdin.read()))')
70
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
- -d "{\"body\": \"${REVIEW_COMMENT}\"}" \
71
+ -d "{\"body\": ${REVIEW_COMMENT_ESCAPED}}" \
72
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
0 commit comments