-
-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved support for GitLab #1408
Conversation
Great, thanks! |
@@ -274,6 +274,30 @@ public function getVendor(): string | |||
return $this->vendor; | |||
} | |||
|
|||
/** | |||
* @return array<string> Vendor and package name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the return type is wrong. It is array<string>|false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and the naming looks weird as the name makes us think it should return a boolean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah true, I'll fix those
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And f1c5a5a 🤦🏻
This pull request refers to #1406 and depends on this other PR for Composer (merged but actually to be yet included in a versioned release).
Provides some extra support for packages hosted on gitlab.com, in particular for stars and forks counters.
Considerations:
isGitHub()
andisGitLab()
functions inApp\Entity\Package
to wrap provider's guessing based on repository URL