Skip to content

Commit 06d36f9

Browse files
committed
#2402: Try fixing the cURL request for comments on PRs
1 parent d3c2c08 commit 06d36f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/report_logs_in_comment.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ echo " }"
132132
echo "}"
133133
} >> data.json
134134

135-
# Send GitHub request to post a PR comment
136-
curl \
137-
--request POST \
138-
--url https://api.github.com/repos/"$repository_name"/dispatches \
139-
--header "Accept: application/vnd.github.everest-preview+json" \
140-
--header "Authorization: token $github_pat" \
141-
--data "@data.json"
135+
curl -L \
136+
-X POST \
137+
-H "Accept: application/vnd.github+json" \
138+
-H "Authorization: Bearer $github_pat" \
139+
-H "X-GitHub-Api-Version: 2022-11-28" \
140+
https://api.github.com/repos/"$repository_name"/dispatches \
141+
--data "@data.json"
142142

143143
# Clean up
144144
rm data.json

0 commit comments

Comments
 (0)