Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit ee58d84

Browse files
committed
Specify simple JSON request body even if empty.
Otherwise response from Github is 400 -- "Cannot parse JSON"
1 parent 88d9f8b commit ee58d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cc/services/github_pull_requests.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Config < CC::Service::Config
2626
def receive_test
2727
setup_http
2828

29-
http_post(base_status_url("0" * 40))
29+
http_post(base_status_url("0" * 40), "{}")
3030

3131
rescue HTTPError => ex
3232
if ex.status == 422 # response message: "No commit found for SHA"

0 commit comments

Comments
 (0)