change threshold to 90 days

This commit is contained in:
Emil Lerch 2025-07-15 20:15:12 -07:00
parent ea08ac7497
commit a559a621c3
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -15,6 +15,9 @@ const utils = @import("utils.zig");
const Provider = @import("Provider.zig"); const Provider = @import("Provider.zig");
// Configuration: Only include releases from the last n days
const RELEASE_AGE_LIMIT_SECONDS: i64 = 90 * std.time.s_per_day;
fn print(comptime fmt: []const u8, args: anytype) void { fn print(comptime fmt: []const u8, args: anytype) void {
if (comptime @import("builtin").is_test) { if (comptime @import("builtin").is_test) {
const build_options = @import("build_options"); const build_options = @import("build_options");
@ -56,9 +59,6 @@ fn printInfo(comptime fmt: []const u8, args: anytype) void {
stderr.print(fmt, args) catch {}; stderr.print(fmt, args) catch {};
} }
// Configuration: Only include releases from the last 365 days
const RELEASE_AGE_LIMIT_SECONDS: i64 = 365 * std.time.s_per_day; // Get from last 365 days
pub const Release = struct { pub const Release = struct {
repo_name: []const u8, repo_name: []const u8,
tag_name: []const u8, tag_name: []const u8,