Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #722 from REBELinBLUE/slack-bug-fix
Browse files Browse the repository at this point in the history
Fixing issue with status overwriting message
  • Loading branch information
Dan Cryer committed Dec 23, 2014
2 parents 3235550 + 44f1445 commit e9e0ba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PHPCI/Plugin/SlackNotify.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ public function execute()
$successfulBuild = $this->build->isSuccessful();

if ($successfulBuild) {
$message = 'Success';
$status = 'Success';
$color = 'good';
} else {
$message = 'Failed';
$status = 'Failed';
$color = 'danger';
}

Expand All @@ -96,7 +96,7 @@ public function execute()
'fields' => array(
new \Maknz\Slack\AttachmentField(array(
'title' => 'Status',
'value' => $message,
'value' => $status,
'short' => false
))
)
Expand Down

0 comments on commit e9e0ba8

Please sign in to comment.