我试图从GitHub中的存储库中找到问题,但是当我使用IssueService类中的searchissues()函数时,它只返回10个问题。我搜索的存储库有40多个注册的问题。
如何返回我的存储库中注册的所有de问题?
private boolean checkPlayServices() {
GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();
int result = googleAPI.isGooglePlayServicesAvailable(this);
if(result != ConnectionResult.SUCCESS) {
if(googleAPI.isUserResolvableError(result)) {
googleAPI.getErrorDialog(this, result,
PLAY_SERVICES_RESOLUTION_REQUEST).show();
}
return false;
}
return true;
}
答案 0 :(得分:0)
这应该与pagination in GitHub API相关。
查看测试org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/IssueTest.java
#L138-L156:它显示如何迭代页结果,而不是直接结果(默认情况下受限制)
IssueService service = new IssueService(client);
Map<String, String> params = new HashMap<String, String>();
params.put(IssueService.FILTER_STATE, IssueService.STATE_CLOSED);
PageIterator<Issue> iterator = service.pageIssues("schacon", "showoff",
params, 1);
assertNotNull(iterator);
assertTrue(iterator.hasNext());
Collection<Issue> page = iterator.next();
int pages = iterator.getLastPage();