pr improvements
This commit is contained in:
@@ -83,7 +83,7 @@ class ResolveTicketBranchMatches
|
||||
$error = null;
|
||||
} catch (Throwable) {
|
||||
$branches = [];
|
||||
$error = ((string) config('app.name')).' could not load branches from this repository right now.';
|
||||
$error = sprintf('%s could not load branches from this repository right now.', config('app.name'));
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
@@ -92,7 +92,7 @@ class ResolveTicketPullRequestMatches
|
||||
|
||||
$error = null;
|
||||
} catch (Throwable) {
|
||||
$error = ((string) config('app.name')).' could not load pull requests from this repository right now.';
|
||||
$error = sprintf('%s could not load pull requests from this repository right now.', config('app.name'));
|
||||
$pullRequests = [];
|
||||
}
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@ class ProjectRepositorySettingsController extends Controller
|
||||
$error = null;
|
||||
} catch (Throwable) {
|
||||
$repositories = [];
|
||||
$error = ((string) config('app.name')).' could not load repositories from this Git connection right now.';
|
||||
$error = sprintf('%s could not load repositories from this Git connection right now.', config('app.name'));
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
@@ -83,7 +83,7 @@ class ProjectTicketBranchController extends Controller
|
||||
} catch (Throwable) {
|
||||
return response()->json([
|
||||
'is_valid' => false,
|
||||
'message' => ((string) config('app.name')).' could not validate this branch name right now.',
|
||||
'message' => sprintf('%s could not validate this branch name right now.', config('app.name')),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ class ProjectTicketBranchController extends Controller
|
||||
);
|
||||
} catch (Throwable) {
|
||||
throw ValidationException::withMessages([
|
||||
'branch_name' => ((string) config('app.name')).' could not validate this branch name right now.',
|
||||
'branch_name' => sprintf('%s could not validate this branch name right now.', config('app.name')),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ class ProjectTicketBranchController extends Controller
|
||||
);
|
||||
} catch (Throwable) {
|
||||
throw ValidationException::withMessages([
|
||||
'branch_name' => ((string) config('app.name')).' could not create this branch right now.',
|
||||
'branch_name' => sprintf('%s could not create this branch right now.', config('app.name')),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ class GitConnectionController extends Controller
|
||||
} catch (Throwable) {
|
||||
return back()
|
||||
->withErrors([
|
||||
'api_token' => ((string) config('app.name')).' could not authenticate against Gitea with this base URL and token.',
|
||||
'api_token' => sprintf('%s could not authenticate against Gitea with this base URL and token.', config('app.name')),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ class GitConnectionController extends Controller
|
||||
} catch (Throwable) {
|
||||
return back()
|
||||
->withErrors([
|
||||
'api_token' => ((string) config('app.name')).' could not authenticate against Gitea with this base URL and token.',
|
||||
'api_token' => sprintf('%s could not authenticate against Gitea with this base URL and token.', config('app.name')),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user