2012-10-26 66 views
9

,是否可以獲取存儲庫的打開請求數而不下載與請求本身相關的所有額外數據?github api通過GitHub API獲取請求數

例如,當您獲取存儲庫列表時,對於每個存儲庫,可以看到未解決問題的數量。是否有類似的公開拉取請求的屬性?

+0

我的第一個答案是錯誤的,因爲搜索API關鍵字只匹配的內容問題和我做的測試是針對在其描述中包含單詞「拉」的問題。所以沒有辦法只對pull請求進行過濾。 我最終只對當前每個回購使用Pull Requests API: http://developer.github.com/v3/pulls/#list-pull-requests 不理想,因爲我只是想知道計數的拉請求。 –

回答

1

你也可以看看搜索api https://developer.github.com/v3/search/#search-issues。貌似可以式過濾器,可能還關閉或不:)

正如意見建議的codea

https://api.github.com/search/issues?q=+type:pr+user:StackExchange&sort=created&order=asc 
+3

'https://api.github.com/search/issues?q = + type:pr + user:StackExchange&sort = created&order = asc' – codea

+0

如何克服30次點擊限制?有一種方法可以讓一個命中中的每個回購計數爲一個組織。 我試過下面的查詢,但它給所有的回購計數: 'https://api.github.com/search/issues?q = + type:pr + org:orgName' –

+1

@ShahidSiddique看看https ://developer.github.com/v3/#pagination –