【发布时间】:2016-05-05 20:27:57
【问题描述】:
我尝试通过以下方式获取创意社区版本,但它返回为空
curl "https://api.github.com/repos/JetBrains/intellij-community/releases"
但是当版本存在于here
如何获得它的版本
【问题讨论】:
我尝试通过以下方式获取创意社区版本,但它返回为空
curl "https://api.github.com/repos/JetBrains/intellij-community/releases"
但是当版本存在于here
如何获得它的版本
【问题讨论】:
这将返回一个发布列表,其中不包括尚未与发布关联的常规 Git 标记。要获取 Git 标记列表,请使用 Repository Tags API。
GitHub 的 UI 令人困惑,但这个存储库实际上没有任何版本,这是 GitHub 特定的概念。您看到的“发布”实际上只是普通的 Git 标记。
试试这个:
curl https://api.github.com/repos/JetBrains/intellij-community/tags
【讨论】: