github - 使用 CLI 从 Github 中的项目获取依赖项

标签 github scripting dependencies command-line-interface

是否有任何命令可以获取 github 上存储库的依赖项?

在 Github 上的“见解”选项卡下,我可以通过按“依赖关系图”按钮查看依赖关系,并显示项目的所有依赖关系。

我的问题是,我可以编写一个脚本来获取这些依赖项吗?

我尝试在 Postman 中导航并对 url 发出 GET 请求 'https://github.com/-User-/-Project-/network/dependencies' 我收到了 404 响应。

但是当我在 Chrome 中输入相同的网址时,我可以看到该项目的依赖关系图。

最佳答案

你不能。目前没有可用于此信息的 API 调用。我也一直想自己获取这些信息。

关于github - 使用 CLI 从 Github 中的项目获取依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75136112/

相关文章:

git - 为什么 git 挂起 - 必须在命令后按 enter 两次?

python - 使用本地安装的依赖项 pip install scikit-image

c - 什么是 HTTP Parser,用在什么地方,有什么作用

open-source - GitHub Contributing、Pull Requests 与 New Issue 的礼仪

Readme.Rmd 导致从 Rstudio 推送到 github 失败

function - 无法使用powershell函数在数组中添加元素

c++ - 如何在不使用 perl/awk/etc 更改 'long' 的情况下将 'int' 更改为 'long long'

linux - Bash 脚本 : How to check if there's is only one root id?

android - Android 项目无法在 Page Indicator 和 CirclePageIndicator 上运行

java - Eclipse 无法识别 Gradle 依赖项