mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-04 00:59:41 +07:00
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:
@ -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--
|
||||
|
Reference in New Issue
Block a user