Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Commit

Permalink
Little fix of message icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Chekalskiy committed May 16, 2015
1 parent f3dbdfa commit 5019cb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Reviewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ public function sendReviews($reviews)
}

try {
$slack = new Slack($this->slackSettings['endpoint']);
$slack = new Slack($this->slackSettings['endpoint'], $config);

if ($this->firstTime === false) {
$slack->attach([
'fallback' => "{$ratingText} {$review['author']['name']}: {$review['title']}{$review['content']}",
'color' => ($review['rating'] >= 4) ? 'good' : (($review['rating'] == 3) ? 'warning' : 'danger'),
'pretext' => "{$ratingText} Review for {$review['application']['version']} from <{$review['author']['uri']}|{$review['author']['name']} ({$review['country']})>",
'pretext' => "{$ratingText} Review for {$review['application']['version']} from <{$review['author']['uri']}|{$review['author']['name']}> ({$review['country']})",
'fields' => [
[
'title' => $review['title'],
Expand Down

0 comments on commit 5019cb2

Please sign in to comment.