json_encode $data in createComment

github response without json_encode was a 400 error:
{"message":"Problems parsing JSON","documentation_url":"https://developer.github.com/v3"}