Skip to main content

Changing the "used by" data for a repository

Display your repository's dependents for a different package.

谁可以使用此功能?

Repository administrators

Some repositories have a "Used by" section in the sidebar of the Code tab. This section shows the number of public references to a package that were found, and displays the avatars of some of the owners of the dependent projects. For more information, see 关于依赖关系图.

If you have admin permissions to a repository that contains multiple packages, you can choose which package the "Used by" section represents.

  1. 在 GitHub 上,导航到存储库的主页面。

  2. 在仓库名称下,单击 “Settings”****。 如果看不到“设置”选项卡,请选择“”下拉菜单,然后单击“设置”。

    存储库标头的屏幕截图,其中显示了选项卡。 “设置”选项卡以深橙色边框突出显示。

  3. 在边栏的“Security”部分中,单击“ Advanced Security”****。

  4. Under "Advanced Security", click the drop-down menu in the "Used by counter" section and choose a package.