在github api中获取发布为空 [英] get releases empty in github api

查看:185
本文介绍了在github api中获取发布为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过以下方式获取想法社区版本,但返回空值

I try to get idea-community releases with following, but it return empty

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

但当发布版本存在于此处

如何获取其发行版

推荐答案

来自文档 a>:

这将返回发行版列表,其中不包括尚未与发行版关联的常规Git标签.要获取Git标签的列表,请使用存储库标签API .

GitHub的UI令人困惑,但是该存储库实际上没有任何发布,这是GitHub特定的概念.您看到的发行版"实际上只是常规的Git标签.

GitHub's UI is confusing, but this repository doesn't actually have any releases, which are a GitHub-specific concept. The "releases" you are seeing are actually just regular Git tags.

尝试以下方法:

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

另请参见 tag和release之间有什么区别?

这篇关于在github api中获取发布为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆