下面是一个在Language字段中返回null的例子,但不知道为什么它返回null?为什么github api为语言字段返回空值
https://api.github.com/repos/wycats/merb-more
下面是一个在Language字段中返回null的例子,但不知道为什么它返回null?为什么github api为语言字段返回空值
https://api.github.com/repos/wycats/merb-more
AFAICT的language
场标志着回购最常用的编程语言。如果没有检测到任何语言为空。
您可以检查的语言列表与
https://api.github.com/repos/:owner/:repo/languages
如果它是空的,你会在一般的回购信息看null
。如果它有一些项目,你应该看到,而不是最常用的一个 - 例如尝试这些URL:
https://api.github.com/repos/testoob/testoob/languages
https://api.github.com/repos/testoob/testoob
这是因为在仓库中公认的无代码相关的内容。 Github会在每次推送事件后自动更新语言字段。对于需要识别的语言,应该在Linguist library中列出。参考。 About repository languages