From 05f712603cf2557522abed70de5800c2813167b9 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 28 Jan 2023 00:08:17 -0500 Subject: [PATCH] GitHub & Codeberg - get first 100 releases (not 30) --- lib/app_sources/codeberg.dart | 2 +- lib/app_sources/github.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/app_sources/codeberg.dart b/lib/app_sources/codeberg.dart index d00bcd8..b4101ca 100644 --- a/lib/app_sources/codeberg.dart +++ b/lib/app_sources/codeberg.dart @@ -64,7 +64,7 @@ class Codeberg extends AppSource { ? additionalSettings['filterReleaseTitlesByRegEx'] : null; Response res = await get(Uri.parse( - 'https://$host/api/v1/repos${standardUrl.substring('https://$host'.length)}/releases')); + 'https://$host/api/v1/repos${standardUrl.substring('https://$host'.length)}/releases?per_page=100')); if (res.statusCode == 200) { var releases = jsonDecode(res.body) as List; diff --git a/lib/app_sources/github.dart b/lib/app_sources/github.dart index 1169d88..7d92ed1 100644 --- a/lib/app_sources/github.dart +++ b/lib/app_sources/github.dart @@ -111,7 +111,7 @@ class GitHub extends AppSource { ? additionalSettings['filterReleaseTitlesByRegEx'] : null; Response res = await get(Uri.parse( - 'https://${await getCredentialPrefixIfAny()}api.$host/repos${standardUrl.substring('https://$host'.length)}/releases')); + 'https://${await getCredentialPrefixIfAny()}api.$host/repos${standardUrl.substring('https://$host'.length)}/releases?per_page=100')); if (res.statusCode == 200) { var releases = jsonDecode(res.body) as List;