下面是一個在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