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;