Skip to content

Commit de7de35

Browse files
committed
debug pr comment posting
1 parent 7a317ed commit de7de35

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test-spelling-unknown-words

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,16 @@ comment() {
225225
if [ -n "$GITHUB_EVENT_PATH" ]; then
226226
case "$GITHUB_EVENT_NAME" in
227227
pull_request)
228-
COMMENTS_URL=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.review_comments_url);;
228+
COMMENTS_URL=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.comments_url);;
229229
push)
230230
COMMENTS_URL=$(cat $GITHUB_EVENT_PATH | jq -r .repository.commits_url | perl -pne 's#\{/sha}#/'$GITHUB_SHA'/comments#');;
231231
esac
232232
fi
233233
if [ -n "$COMMENTS_URL" ] && [ -z "${COMMENTS_URL##*:*}" ]; then
234234
echo $PAYLOAD
235235
echo $COMMENTS_URL
236-
curl -s -S -H "Authorization: token $GITHUB_TOKEN" --header "Content-Type: application/json" --data "$PAYLOAD" "$COMMENTS_URL" > /dev/null
236+
curl -s -S -H "Authorization: token $GITHUB_TOKEN" --header "Content-Type: application/json" -H 'Accept: application/vnd.github.comfort-fade-preview+json
237+
' --data "$PAYLOAD" "$COMMENTS_URL"
237238
else
238239
echo "$OUTPUT"
239240
fi

0 commit comments

Comments
 (0)