Skip to content

Commit 9f8f0f2

Browse files
committed
Update Telegram.php
1 parent c178f40 commit 9f8f0f2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Telegram.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ public function __construct(Builder $phpci, Build $build, array $options = array
4747
throw new \Exception("Not setting recipients");
4848
}
4949
$this->api_key = $options['api_key'];
50+
$this->message = '[%ICON_BUILD%] [%PROJECT_TITLE%](%PROJECT_URI%) - [Build #%BUILD%](%BUILD_URI%) has finished ' .
51+
'for commit [%SHORT_COMMIT% (%COMMIT_EMAIL%)](%COMMIT_URI%) ' .
52+
'on branch [%BRANCH%](%BRANCH_URI%)';
5053
if (isset($options['message'])) {
5154
$this->message = $options['message'];
52-
} else {
53-
$this->message = '[%ICON_BUILD%] [%PROJECT_TITLE%](%PROJECT_URI%) - [Build #%BUILD%](%BUILD_URI%) has finished ' .
54-
'for commit [%SHORT_COMMIT% (%COMMIT_EMAIL%)](%COMMIT_URI%) ' .
55-
'on branch [%BRANCH%](%BRANCH_URI%)';
5655
}
5756
$this->recipients = array();
5857
if (is_string($options['recipients'])) {

0 commit comments

Comments
 (0)