From 728bc91f6fc10698a90ffaa503884940bd32bb06 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 10 Mar 2024 21:53:04 +0100 Subject: misc changes --- src/main/kotlin/Main.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index 3f221fe..7ac991d 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -44,12 +44,10 @@ fun main() { val whatToDo = WhatToDo.NEXT_BETA - println("") - @Suppress("KotlinConstantConditions") val url = when (whatToDo) { WhatToDo.NEXT_BETA -> "https://api.github.com/repos/hannibal002/SkyHanni/pulls?state=closed&sort=updated&direction=desc&per_page=50" - WhatToDo.OPEN_PRS -> "https://api.github.com/repos/hannibal002/SkyHanni/pulls?state=open&sort=updated&direction=desc&per_page=20" + WhatToDo.OPEN_PRS -> "https://api.github.com/repos/hannibal002/SkyHanni/pulls?state=open&sort=updated&direction=desc&per_page=30" } val data = getTextFromUrl(url).joinToString("") @@ -84,6 +82,8 @@ fun readPrs( .map { it.first to Long.MAX_VALUE - Instant.parse(it.second).toEpochMilli() } .sortedBy { it.second } .map { it.first } + + println("") for (pr in filtered) { val number = pr.number val prLink = pr.htmlUrl -- cgit