Skip to content

Commit

Permalink
update to newer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Nov 25, 2024
1 parent 3d749a8 commit 935677c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"nunomaduro/collision": "^8.1.1||^7.10.0",
"larastan/larastan": "^2.9",
"orchestra/testbench": "^9.0.0||^8.22.0",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-arch": "^2.7",
"pestphp/pest-plugin-laravel": "^2.3",
"pestphp/pest": "^3.0",
"pestphp/pest-plugin-arch": "^3.0",
"pestphp/pest-plugin-laravel": "^3.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
Expand Down
8 changes: 6 additions & 2 deletions configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,21 @@ function guessGitHubUsername(): string
}

// fall back to using the username from the git remote
$remoteUrl = shell_exec('git config remote.origin.url');
$remoteUrl = shell_exec('git config remote.origin.url') ?? '';
$remoteUrlParts = explode('/', str_replace(':', '/', trim($remoteUrl)));

return $remoteUrlParts[1] ?? '';
}

function guessGitHubVendorInfo($authorName, $username): array
{
$remoteUrl = shell_exec('git config remote.origin.url');
$remoteUrl = shell_exec('git config remote.origin.url') ?? '';
$remoteUrlParts = explode('/', str_replace(':', '/', trim($remoteUrl)));

if (! isset($remoteUrlParts[1])) {
return [$authorName, $username];
}

$response = getGitHubApiEndpoint("orgs/{$remoteUrlParts[1]}");

if ($response === null) {
Expand Down

0 comments on commit 935677c

Please sign in to comment.