fix: only strip git_host from repository_url when git_host is github.com (#10274)

This commit is contained in:
Andras Bacsai
2026-07-07 12:11:45 +02:00
committed by GitHub
2 changed files with 89 additions and 1 deletions
@@ -1148,8 +1148,8 @@ class ApplicationsController extends Controller
if ($git_host === 'github.com') {
$application->source_type = GithubApp::class;
$application->source_id = GithubApp::find(0)->id;
$application->git_repository = str($repository_url_parsed->getSegment(1).'/'.$repository_url_parsed->getSegment(2))->trim()->toString();
}
$application->git_repository = str($repository_url_parsed->getSegment(1).'/'.$repository_url_parsed->getSegment(2))->trim()->toString();
$application->fqdn = $fqdn;
$application->destination_id = $destination->id;
$application->destination_type = $destination->getMorphClass();