body([ "themeColor" => get('teams_color'), 'text' => get('teams_text') ])->send(); }) ->once() ->shallow() ->hidden(); desc('Notifying Teams about deploy finish'); task('teams:notify:success', function () { if (!get('teams_webhook', false)) { return; } Httpie::post(get('teams_webhook'))->body([ "themeColor" => get('teams_success_color'), 'text' => get('teams_success_text') ])->send(); }) ->once() ->shallow() ->hidden(); desc('Notifying Teams about deploy failure'); task('teams:notify:failure', function () { if (!get('teams_webhook', false)) { return; } Httpie::post(get('teams_webhook'))->body([ "themeColor" => get('teams_failure_color'), 'text' => get('teams_failure_text') ])->send(); }) ->once() ->shallow() ->hidden();