Further refine projects system

This commit is contained in:
Alex Cabal 2024-12-15 22:44:31 -06:00
parent 2449de6f6c
commit 5782d6ca7d
20 changed files with 307 additions and 94 deletions

View file

@ -3,17 +3,12 @@
require_once('/standardebooks.org/web/lib/Core.php');
use function Safe\file_get_contents;
use Safe\DateTimeImmutable;
/**
* Iterate over all `Project`s that are in progress or stalled and get their latest GitHub commit. If the commit is more than 30 days old, mark the `Project` as stalled.
*/
use Safe\DateTimeImmutable;
$projects = array_merge(
Project::GetAllByStatus(Enums\ProjectStatusType::InProgress),
Project::GetAllByStatus(Enums\ProjectStatusType::Stalled)