summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-10 21:53:04 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-10 21:53:04 +0100
commit728bc91f6fc10698a90ffaa503884940bd32bb06 (patch)
tree4ec745289bcea948cc0332a6bd37429f42b97dd5
parent651cdc07cc8e4c42361117bbf263e3681368346c (diff)
downloadSkyHanniChangelogBuilder-728bc91f6fc10698a90ffaa503884940bd32bb06.tar.gz
SkyHanniChangelogBuilder-728bc91f6fc10698a90ffaa503884940bd32bb06.tar.bz2
SkyHanniChangelogBuilder-728bc91f6fc10698a90ffaa503884940bd32bb06.zip
misc changes
-rw-r--r--src/main/kotlin/Main.kt6
1 files 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