From f201799a0f1abc3bf7454d5f38a4e8a21a093a1a Mon Sep 17 00:00:00 2001 From: Philip Keiter Date: Sat, 21 Jan 2023 11:35:31 -0600 Subject: [PATCH] Include forked repos in github search. (#8426) * Include forked repos in github search. * Include forked repos in github search, the right way. --- core/src/com/unciv/ui/pickerscreens/GitHub.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/pickerscreens/GitHub.kt b/core/src/com/unciv/ui/pickerscreens/GitHub.kt index 98d8b9a663..f87135ae4b 100644 --- a/core/src/com/unciv/ui/pickerscreens/GitHub.kt +++ b/core/src/com/unciv/ui/pickerscreens/GitHub.kt @@ -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--