mirror of
git://f0xx.org/ac/ac-be-builder
synced 2026-07-29 05:59:26 +03:00
feat(builder): shared nav shell, fail notify, sanitizer wiring
Signed-off-by: Anton Afanasyeu <a.afanasieff@gmail.com>
This commit is contained in:
@@ -21,6 +21,15 @@ $params['auto_ota'] = !empty($params['auto_ota']);
|
||||
$params['auto_deploy'] = !empty($params['auto_deploy']);
|
||||
$params['ota_channel'] = $params['ota_channel'] ?? 'staging';
|
||||
$params['gradle_task'] = $params['gradle_task'] ?? 'assembleDebug';
|
||||
$params['notify_on_fail'] = array_key_exists('notify_on_fail', $params) ? !empty($params['notify_on_fail']) : true;
|
||||
$params['notify_channel'] = in_array(
|
||||
(string) ($params['notify_channel'] ?? 'email'),
|
||||
['email', 'telegram', 'both'],
|
||||
true
|
||||
) ? (string) $params['notify_channel'] : 'email';
|
||||
if (!isset($params['trigger_source'])) {
|
||||
$params['trigger_source'] = 'manual';
|
||||
}
|
||||
|
||||
$user = Auth::user();
|
||||
$build = BuildRunner::enqueue($params, isset($user['id']) ? (int) $user['id'] : null);
|
||||
|
||||
Reference in New Issue
Block a user