gpt4 book ai didi

api - 在 github api 中获取空的版本

转载 作者:行者123 更新时间:2023-12-02 20:27:43 25 4
gpt4 key购买 nike

我尝试通过以下方式获取创意社区版本,但它返回空

curl "https://api.github.com/repos/JetBrains/intellij-community/releases"

但是当版本存在于 here 中时

如何获取其版本

最佳答案

来自the documentation :

This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the Repository Tags API.

GitHub 的 UI 很困惑,但这个存储库实际上没有任何版本,这是 GitHub 特定的概念。您看到的“发布”实际上只是常规的 Git 标签。

试试这个:

curl https://api.github.com/repos/JetBrains/intellij-community/tags

另请参阅What's the difference between tag and release?

关于api - 在 github api 中获取空的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35061896/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com