Include forked repos in github search. (#8426)

* Include forked repos in github search.

* Include forked repos in github search, the right way.
This commit is contained in:
Philip Keiter
2023-01-21 11:35:31 -06:00
committed by GitHub
parent 29decb5f67
commit f201799a0f

View File

@ -231,7 +231,7 @@ object Github {
fun tryGetGithubReposWithTopic(amountPerPage:Int, page:Int, searchRequest: String = ""): RepoSearch? {
// Add + here to separate the query text from its parameters
val searchText = if (searchRequest != "") "$searchRequest+" else ""
val link = "https://api.github.com/search/repositories?q=${searchText}topic:unciv-mod&sort:stars&per_page=$amountPerPage&page=$page"
val link = "https://api.github.com/search/repositories?q=${searchText}%20topic:unciv-mod%20fork:true&sort:stars&per_page=$amountPerPage&page=$page"
var retries = 2
while (retries > 0) {
retries--