composer / packagist

Package Repository Website - try https://packagist.com if you need your own -
https://packagist.org/
MIT License
1.75k stars 476 forks source link

Hide stars and other GitHub-centric stats when not using GitHub #1141

Closed ancarda closed 3 years ago

ancarda commented 3 years ago

I moved my package from GitHub to SourceHut, and I noticed Packagist continues displaying "stars", "watchers", and "forks". They seem to work by just appending /stargazers to the end of the repo URL (for instance, in the case of stars). That URL doesn't exist.

Can these 3 stats be removed/hidden if the repo is not hosted on GitHub?

stof commented 3 years ago

When changing the source of a package from github to a non-github location, the fields storing github-only metadata probably need to be reset (as they won't be updated to new values for the new source)