This commit is contained in:
Andras Bacsai 2023-06-19 09:14:09 +02:00
parent c407306db5
commit 716c9aa860
5 changed files with 5 additions and 13 deletions

View File

@ -1,3 +1,3 @@
<?php
return '4.0.0-nightly.23';
return '4.0.0-nightly.24';

View File

@ -43,8 +43,8 @@
<input {{ $attributes }} id={{ $id }} name={{ $name }}
wire:model.defer={{ $id }} wire:dirty.class="input-warning" wire:loading.attr='disabled'
@readonly($readonly) @disabled($disabled)
@isset($value) value={{ $value }} @endisset
@isset($placeholder) placeholder={{ $placeholder }} @endisset>
@isset($value) value="{{ $value }}" @endisset
@isset($placeholder) placeholder="{{ $placeholder }}" @endisset>
@endif
@if (!$label && $helper)
<x-helper :helper="$helper" />

View File

@ -88,8 +88,6 @@
<option value="{{ $fqdn }}">Use {{ $fqdn }}</option>
@endif
</x-forms.select>
</div>
<div class="flex flex-col gap-2 pt-4">
<x-forms.checkbox disabled instantSave id="default_permissions" label="Default Permissions"

View File

@ -29,6 +29,7 @@
'private_key' => $private_key,
'team_id' => $github_app->team_id
]);
$github_app->name = $slug;
$github_app->app_id = $id;
$github_app->client_id = $client_id;
$github_app->client_secret = $client_secret;
@ -51,13 +52,6 @@
$github_app->installation_id = $installation_id;
$github_app->save();
}
// Must check the slug in case the user changes it in the GitHub App settings
$token = generate_github_jwt_token($github_app);
$response = Http::github($github_app->api_url, $token)->get('/app');
$slug = data_get($response->json(), 'slug');
$github_app->name = $slug;
$github_app->save();
return redirect()->route('source.github.show', ['github_app_uuid' => $github_app->uuid]);
} catch (\Exception $e) {
return general_error_handler(err: $e);

View File

@ -4,7 +4,7 @@
"version": "3.12.32"
},
"v4": {
"version": "4.0.0-nightly.23"
"version": "4.0.0-nightly.24"
}
}
}