Skip to content

Commit c6b196b

Browse files
Add details of the Used by sidebar section (#17058)
Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com>
1 parent be06c80 commit c6b196b

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

837 KB
Loading
223 KB
Loading

content/github/visualizing-repository-data-with-graphs/exploring-the-dependencies-of-a-repository.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ If vulnerabilities have been detected in the repository, these are shown at the
3838
{% if enterpriseServerVersions contains currentVersion and currentVersion ver_gt "enterprise-server@2.21" %}
3939
Any direct and indirect dependencies that are specified in the repository's manifest or lock files are listed, grouped by ecosystem. If vulnerabilities have been detected in the repository, these are shown at the top of the view for users with access to {% data variables.product.prodname_dependabot_alerts %}.
4040

41-
{% note %}
42-
43-
**Note:** {% data variables.product.prodname_ghe_server %} does not populate the **Dependents** view.
44-
45-
{% endnote %}
46-
4741
![Dependencies graph](/assets/images/help/graphs/dependencies_graph_server.png)
4842

4943
{% note %}
@@ -57,12 +51,6 @@ Any direct and indirect dependencies that are specified in the repository's mani
5751
{% if enterpriseServerVersions contains currentVersion and currentVersion ver_lt "enterprise-server@2.22" %}
5852
Any direct and indirect dependencies that are specified in the repository's manifest or lock files are listed, grouped by ecosystem. If vulnerabilities have been detected in the repository, these are shown at the top of the view for users with access to security alerts.
5953

60-
{% note %}
61-
62-
**Note:** {% data variables.product.prodname_ghe_server %} does not populate the **Dependents** view.
63-
64-
{% endnote %}
65-
6654
![Dependencies graph](/assets/images/help/graphs/dependencies_graph_server.png)
6755

6856
{% note %}
@@ -93,6 +81,25 @@ You can also enable or disable the dependency graph for all repositories owned b
9381
!["Enable" button for the dependency graph](/assets/images/help/repository/dependency-graph-enable-button.png)
9482

9583
You can disable the dependency graph at any time by clicking **Disable** next to "Dependency Graph" on the Security & analysis tab.
84+
85+
### Changing the "Used by" package
86+
87+
If the dependency graph is enabled, and your repository contains a package that's published on a supported package ecosystem, {% data variables.product.prodname_dotcom %} displays a "Used by" section in the sidebar of the **Code** tab of your repository. For more information about the supported package ecosystems, see "[About the dependency graph](/github/visualizing-repository-data-with-graphs/about-the-dependency-graph#supported-package-ecosystems)."
88+
89+
The "Used by" section shows the number of public references to the package that were found, and displays the avatars of some of the owners of the dependent projects.
90+
91+
!["Used by" sidebar section](/assets/images/help/repository/used-by-section.png)
92+
93+
Clicking any item in this section takes you to the **Dependents** tab of the dependency graph.
94+
95+
The "Used by" section represents a single package from the repository. If you have admin permissions to a repository that contains multiple packages, you can choose which package the "Used by" section represents.
96+
97+
{% data reusables.repositories.navigate-to-repo %}
98+
{% data reusables.repositories.sidebar-settings %}
99+
{% data reusables.repositories.navigate-to-security-and-analysis %}
100+
4. Under "Configure security and analysis features", click the drop-down menu in the "Used by counter" section and choose a package.
101+
![Choose a "Used by" package](/assets/images/help/repository/choose-used-by-package.png)
102+
96103
{% endif %}
97104

98105
### Troubleshooting the dependency graph

0 commit comments

Comments
 (0)