Skip to content
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

Merged
merged 3 commits into from
Jan 8, 2024
Merged

Improved support for GitLab #1408

merged 3 commits into from
Jan 8, 2024

Conversation

madbob
Copy link
Contributor

@madbob madbob commented Dec 23, 2023

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:

  • I kept the original naming of attributes with the "github" prefix (e.g. github_stars) to avoid breaking stuff. Inaccurate, but effective
  • I've introduced isGitHub() and isGitLab() functions in App\Entity\Package to wrap provider's guessing based on repository URL

@Seldaek Seldaek merged commit 873641c into composer:main Jan 8, 2024
2 of 3 checks passed
@Seldaek Seldaek added the Feature label Jan 8, 2024
@Seldaek
Copy link
Member

Seldaek commented Jan 8, 2024

Great, thanks!

@@ -274,6 +274,30 @@ public function getVendor(): string
return $this->vendor;
}

/**
* @return array<string> Vendor and package name
Copy link
Contributor

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

Copy link
Contributor

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.

Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And f1c5a5a 🤦🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants