From e105c63501697483705a44bae9ef4ad7af8d7050 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Tue, 26 May 2026 12:27:20 +0200 Subject: [PATCH] `traces:fetch:contributors` : Fixed blog with scheme --- src/Command/FetchContributorsCommand.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Command/FetchContributorsCommand.php b/src/Command/FetchContributorsCommand.php index b97d9a4..5d46576 100644 --- a/src/Command/FetchContributorsCommand.php +++ b/src/Command/FetchContributorsCommand.php @@ -145,11 +145,20 @@ protected function fetchContributors(): array : substr($userEmail, strpos($userEmail, '@') + 1); } - // add exclusion property if setting enabled + // Add exclusion property if setting enabled if ($this->configKeepExcludedUsers) { $user['excluded'] = in_array($ghLogin, $this->configExclusions, true); } + // Fixed scheme for blog + $user['blog'] = empty($user['blog']) + ? '' + : ( + (str_starts_with($user['blog'], 'http://') || str_starts_with($user['blog'], 'https://')) + ? $user['blog'] + : ('https://' . $user['blog']) + ); + $user['contributions'] = 0; $user['repositories'] = []; $user['categories'] = $categories;