Skip to content

Commit

Permalink
Fix operation
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Mar 13, 2014
1 parent 571cd5c commit a4cadc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/lib/github.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function github_comment_commit($repo, $sha, $comment)

//set the url, number of POST vars, POST data
curl_setopt_array($ch, $GLOBALS['curl_base_opts']);
curl_setopt($ch, CURLOPT_URL, 'https://api.github.com/repos/' . $repo, '/commits/' . $sha . '/comments');
curl_setopt($ch, CURLOPT_URL, 'https://api.github.com/repos/' . $repo . '/commits/' . $sha . '/comments');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array('body' => $comment)));

Expand Down

0 comments on commit a4cadc4

Please sign in to comment.