File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments