简体   繁体   中英

How to use the used by button in the GitHub repository

Hello i have published a library in my github repository and i want to use the used by button in the repository

I checked the repository settings but found no options to enable it How do I enable this button in my repository? 在此处输入图像描述

netlify/staticgen issue 507 also asks, as you do:

GitHub introduced a new metric, which I find much more relevant than stars or downloads. It shows the number of times a dependency is used by other repositories.

https://user-images.githubusercontent.com/103008/58381225-c4911d80-7fba-11e9-9179-1964cc18e963.png

How is this metric added to a repository?

GitHub shows package metrics for projects that use a package manager, eg. if your repo has a package.json , it will use that to show your dependency network.

It is then automatically analyzed by GitHub, which scan other repository where your project reference shows up.

This was announced last May 2019 by GitHub .
And it can be misleading (for monorepos)

Official documentation: " Listing the projects that depend on a repository "

This is only for projects using:

  • RubyGems
  • NPM
  • PyPI
  • Maven (pom.xml only)
  • Nuget

Check the supported languages .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM