I have seen the feature that show what package depend on a repository.
I have created this repository: https://github.com/bootstrap-styled/v4 and many dependency I create depend on it, just to name a few:
https://github.com/bootstrap-styled/ra-ui
Looking at the package.json
, the dependency is used here: https://github.com/bootstrap-styled/ra-ui/blob/master/package.json#L291
This happen only on that repo and we found it weird, because this repo can detect with the same kind of setting https://github.com/bootstrap-styled/bootstrap-styled it's usage without hassle.
What are the criteria? When will the Used by
badge appear on that Github page?
Best!
Why is the badge not displayed and how can I make the badge appear?
Under your repository name, click Settings. In the "Security" section of the sidebar, click Code security and analysis. Read the message about granting GitHub read-only access to the repository data to enable the dependency graph, then next to "Dependency Graph", click Enable.
Paket allows you to automatically manage the linking of files from github.com or gist.github.com into your projects. If you have Git installed then Paket also allows you to reference files from other git repositories.
You can disable the dependency graph at any time by clicking Disable next to "Dependency Graph" on the settings page for "Code security and analysis."
I couldn't find any documentation for this, but what I've observed is, whenever the dependency begins with an @
, it comes up on the Dependency Graph of GitHub without a hyperlink to the repository, otherwise it comes up with a hyperlink to the repo.
If you see the dependencies in the Dependency Graph of the ra-ui repo, you would notice that @bootstrap-styled/v4
would come up without a hyperlink to the repo:
But other dependancies like below would come up with hyperlinks to their respective repos:
When the dependency comes up with a hyperlink to the repo in the Dependency Graph, the same is counted in the Used by feature of GitHub.
If you see the dependency bootstrap-styled
is added too in the ra-ui
repo, and the Used by feature in the bootstrap-styled repo is showing up fine.
So I believe the Dependency graph of GitHub is not getting a connection between the dependencies which begin with @
and their respective repositories on GitHub and hence not counting them in the Used by feature.
UPDATE:
This issue has been fixed by GitHub and the Used by count is now showing up for repos having scoped packages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With