Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #110 from snowiow/slack-check-branch-option
Browse files Browse the repository at this point in the history
take branch option if set
  • Loading branch information
antonmedv committed Feb 24, 2017
2 parents c03dfff + 180f02b commit 3964147
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion slack.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
$revision = trim(runLocally('git log -n 1 --format="%h"'));
$stage = get('stages')[0];
$branch = get('branch');

if (input()->hasOption('branch')) {
$inputBranch = input()->getOption('branch');
if (!empty($inputBranch)) {
$branch = $inputBranch;
}
}
$defaultConfig = [
'channel' => '#general',
'icon' => ':sunny:',
Expand Down

0 comments on commit 3964147

Please sign in to comment.