Skip to content

Commit

Permalink
Moar testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ekinhbayar committed Dec 7, 2016
1 parent 15e0c7c commit f184ec6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Plugins/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,17 @@ protected function getCommitReference(Command $command, string $path)
}

var_dump($responses);
var_dump($errors);

if (isset($resource)) {
throw new ReferenceNotFoundException("Failed to fetch $resource for $path");
}

$commit = json_decode($responses['branch']->getBody(), true);
if (!isset($commit['object']['sha'])) {
return $this->chatClient->postMessage($command->getRoom(), "Failed to fetch reference SHA for $path");
throw new ReferenceNotFoundException("Failed to fetch reference SHA for $path");
}

return (string) $commit['object']['sha'];
return $commit['object']['sha'];
}

/**
Expand Down

0 comments on commit f184ec6

Please sign in to comment.