获取GitHub Enterprise存储库中的所有里程碑

时间:2018-03-21 14:39:37

标签: github github-api

如何使用Eclipse客户端将所有里程碑列表导入GHE存储库。我尝试了这个,但有一个我无法找到的参数:

        GitHubClient client = new GitHubClient(host);
        client.setOAuth2Token(token);

        RepositoryService service = new RepositoryService(client);

        List<Repository> repositories = service.getRepositories();

        for (int z = 0; z < repositories.size(); z++)
        {
            Repository repository = repositories.get(z);

            MilestoneService milestoneService = new MilestoneService(client);

            List<Milestone> milestones = milestoneService.getMilestones(repository, "");

        }

0 个答案:

没有答案