1
我正在開發一個使用一些Github信息的Web服務。我需要獲得一個文件列表,這些文件是通過提交進行更改的。我發現了一個list of libraries。我嘗試了所有3個Java庫和github3.py
。所有這些庫都會向我返回一個提交信息,其中包含受影響文件的empy列表(或用於Java庫的null
)。獲取受影響文件列表的代碼非常簡單,所以我不知道爲什麼會發生。github3.py。提交文件的空目錄
from github3 import login, repository
repo = repository('sigmavirus24', 'github3.py')
commits = repo.iter_commits()
for commit in commits:
print len(commit.files) #prints 0
UPD:我怎樣才能提交由特定改變的文件列表?
那麼到底什麼是你的問題? – MattDMo 2014-09-13 01:23:24
@MattDMo對不起。更新 – 2014-09-13 01:25:58