Only guess domain when gitea_url is not set

allows for gitea integration when not using a uri e.g. gitea@example.com:example/example so long as gitea_http_url is set
This commit is contained in:
MaxHearnden
2022-10-13 15:15:45 +01:00
committed by GitHub
parent 8f05b797e9
commit 4a0c5a2570

View File

@@ -63,9 +63,9 @@ sub common {
my $accessToken = $self->{config}->{gitea_authorization}->{$repoOwner};
my $rev = $i->revision;
my $domain = URI->new($i->uri)->host;
my $host;
unless (defined $gitea_url) {
my $domain = URI->new($i->uri)->host;
$host = "https://$domain";
} else {
$host = $gitea_url->value;