下面是一个在语言字段中返回null的示例,但不确定它为什么返回null?
https://api.github.com/repos/wycats/merb-more
答案 0 :(得分:1)
AFAICT language
字段表示回购中最常用的编程语言。如果没有检测到任何语言为空。
您可以使用
查看语言列表https://api.github.com/repos/:owner/:repo/languages
如果它为空,您会在常规回购信息中看到null
。如果它有一些条目,您应该看到最常用的条目 - 例如尝试这些网址:
https://api.github.com/repos/testoob/testoob/languages
https://api.github.com/repos/testoob/testoob
答案 1 :(得分:1)
这是因为存储库中没有识别出与代码相关的内容。每次推送事件后,Github都会自动更新语言字段。对于要识别的语言,应列在Linguist library中。参考。 About repository languages