Skip to content

Commit

Permalink
Testing CodeSniffer #1
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyDijkstra committed Feb 7, 2022
1 parent eca257e commit 522450e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Services/GithubApiCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ public function addPullRequestReview(string $message, string $event, string $com
$this->config->repository(),
$this->config->pullRequestNumber()
));

echo "\n\n\n\n" . json_encode($data, JSON_PRETTY_PRINT) . "\n\n\n\n";

curl_setopt_array(
$curl,
[
Expand All @@ -373,7 +376,9 @@ public function addPullRequestReview(string $message, string $event, string $com
$info = curl_getinfo($curl);
curl_close($curl);

if ($info['http_code'] !== 201) {
echo "\n\n\n\n" . $response . "\n\n\n\n";

if ($info['http_code'] !== 200) {
throw new RuntimeException('Failed placing pull request review: ' . $response);
}
}
Expand Down

0 comments on commit 522450e

Please sign in to comment.