set enable state based on pr status
Some checks failed
Check flake.lock / Check health of `flake.lock` (pull_request) Successful in 10s
Check Nix flake / Perform Nix flake checks (pull_request) Failing after 2m39s
Check Nix formatting / Perform Nix format checks (pull_request) Successful in 2m31s

This commit is contained in:
ahuston-0 2025-03-26 15:09:02 -04:00
parent 4824c265f9
commit ef94163933
No known key found for this signature in database
GPG Key ID: 47940175096C1330

View File

@ -27,6 +27,7 @@ let
keepnr ? 3,
description,
flake,
enabled ? 1,
}:
{
inherit
@ -34,8 +35,8 @@ let
flake
schedulingshares
keepnr
enabled
;
enabled = 1;
type = 1;
hidden = false;
checkinterval = 300; # every 5 minutes
@ -64,6 +65,7 @@ let
value = makeJob {
description = "PR ${id}: ${info.title}";
flake = "git+ssh://gitea@nayeonie.com:2222/${info.head.repo.full_name}?ref=${info.head.ref}";
enabled = if info.state == "open" then 1 else 0;
};
};