Search repositories.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.kohsuke.github.GHSearchBuilder
terms
Fields inherited from class org.kohsuke.github.GHQueryBuilder
req
-
Method Summary
Modifier and TypeMethodDescriptionCreated gh repository search builder.Searching in forks The default search mode isGHFork.PARENT_ONLY
.protected String
Gets the api url.In gh repository search builder.Language gh repository search builder.order
(GHDirection v) Order gh repository search builder.Org gh repository search builder.Pushed gh repository search builder.Search terms.Repo gh repository search builder.Size gh repository search builder.Sort gh repository search builder.Stars gh repository search builder.Topic gh repository search builder.User gh repository search builder.visibility
(GHRepository.Visibility visibility) Search by repository visibility.Methods inherited from class org.kohsuke.github.GHSearchBuilder
list
-
Method Details
-
q
Search terms.- Overrides:
q
in classGHSearchBuilder<GHRepository>
- Parameters:
term
- the term- Returns:
- the gh query builder
-
in
In gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
size
Size gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
fork
Searching in forks The default search mode isGHFork.PARENT_ONLY
. In that mode, forks are not included in search results.Passing
GHFork.PARENT_AND_FORKS
orGHFork.FORKS_ONLY
will show results from forks, but only if they have more stars than the parent repository.IMPORTANT: Regardless of this setting, no search results will ever be returned for forks with equal or fewer stars than the parent repository. Forks with less stars than the parent repository are not included in the index for code searching.
- Parameters:
fork
- search mode for forks- Returns:
- the gh repository search builder
- See Also:
-
visibility
Search by repository visibility.- Parameters:
visibility
- repository visibility- Returns:
- the gh repository search builder
- Throws:
GHException
- ifGHRepository.Visibility.UNKNOWN
is passed. UNKNOWN is a placeholder for unexpected values encountered when reading data.- See Also:
-
created
Created gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
pushed
Pushed gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
user
User gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
repo
Repo gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
language
Language gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
stars
Stars gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
topic
Topic gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
org
Org gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
order
Order gh repository search builder.- Parameters:
v
- the v- Returns:
- the gh repository search builder
-
sort
Sort gh repository search builder.- Parameters:
sort
- the sort- Returns:
- the gh repository search builder
-
getApiUrl
Gets the api url.- Specified by:
getApiUrl
in classGHSearchBuilder<GHRepository>
- Returns:
- the api url
-