fix(lightly-qt5): update.rhai (#4045)

Signed-off-by: madomado <madonuko@outlook.com>
This commit is contained in:
madomado
2025-03-20 23:13:46 +08:00
committed by GitHub
parent 6ae829be29
commit bcb9f8ea7c
+2 -2
View File
@@ -1,4 +1,4 @@
fn main() {
fn main(labels) {
let branch = bump::as_bodhi_ver(labels.branch);
let url = `https://bodhi.fedoraproject.org/updates/?search=qt5-5.&status=stable&releases=${branch}&rows_per_page=1&page=1`;
for entry in get(url).json().updates[0].title.split(' ') {
@@ -9,4 +9,4 @@ fn main() {
}
}
open_file("anda/themes/lightly-qt5/VER5.txt").write(`${main()}`); // will trig rebuild when changed
open_file("anda/themes/lightly-qt5/VER5.txt").write(`${main(labels)}`); // will trig rebuild when changed