Class SearchClient
java.lang.Object
ink.icoding.github4j.GithubClient
ink.icoding.github4j.client.SearchClient
GitHub Search API 客户端。
提供仓库、代码、提交、用户、Issue、标签、主题等的搜索功能。
对应 GitHub REST API 文档: Search
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsearchCode(String query, SearchOptions options) 搜索代码。searchCommits(String query, SearchOptions options) 搜索提交。searchIssues(String query, SearchOptions options) 搜索 Issue 和 Pull Request。searchLabels(String query, String repo, SearchOptions options) 搜索仓库标签。searchRepositories(String query, SearchOptions options) 搜索仓库。searchTopics(String query, SearchOptions options) 搜索主题。searchUsers(String query, SearchOptions options) 搜索用户。Methods inherited from class GithubClient
actions, builder, configureObjectMapper, delete, get, get, getPaged, getRaw, gists, git, issues, meta, notifications, orgs, patch, post, projects, pulls, put, putNoBody, releases, repos, search, teams, users, webhooksModifier and TypeMethodDescriptionactions()static GithubClientBuilderbuilder()protected com.fasterxml.jackson.databind.ObjectMapperconfigureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) protected GithubResponse<Void> protected <T> GithubResponse<T> get(String path, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, Map<String, String> queryParams) protected <T> GithubResponse<T> protected <T> Page<T> protected GithubResponse<byte[]> gists()git()issues()meta()orgs()protected <T> GithubResponse<T> protected <T> GithubResponse<T> projects()pulls()protected <T> GithubResponse<T> protected GithubResponse<Void> releases()repos()search()teams()users()webhooks()
-
Constructor Details
-
SearchClient
-
-
Method Details
-
searchRepositories
搜索仓库。API 端点:
GET /search/repositories- Parameters:
query- 搜索查询字符串options- 搜索选项(排序、排序顺序、分页),可为 null- Returns:
- 分页的仓库搜索结果
-
searchCode
-
searchCommits
搜索提交。API 端点:
GET /search/commits- Parameters:
query- 搜索查询字符串options- 搜索选项(排序、排序顺序、分页),可为 null- Returns:
- 分页的提交搜索结果
-
searchUsers
搜索用户。API 端点:
GET /search/users- Parameters:
query- 搜索查询字符串options- 搜索选项(排序、排序顺序、分页),可为 null- Returns:
- 分页的用户搜索结果
-
searchIssues
搜索 Issue 和 Pull Request。API 端点:
GET /search/issues- Parameters:
query- 搜索查询字符串options- 搜索选项(排序、排序顺序、分页),可为 null- Returns:
- 分页的 Issue 搜索结果
-
searchLabels
搜索仓库标签。API 端点:
GET /search/labels- Parameters:
query- 搜索查询字符串repo- 仓库全名(格式: owner/repo)options- 搜索选项(排序、排序顺序、分页),可为 null- Returns:
- 分页的标签搜索结果
-
searchTopics
-