From a2c23809d2095d4eb06cbe1e67af1e8fc340a0bc Mon Sep 17 00:00:00 2001 From: bernardhanna Date: Tue, 19 May 2026 15:10:13 +0100 Subject: [PATCH 1/2] feat(support): schedule Gmail poll every five minutes when enabled Automates ticket ingestion and dry-run workflow without manual artisan poll. Co-authored-by: Cursor --- routes/console.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/console.php b/routes/console.php index ff8de36fd..4a40e3f6b 100644 --- a/routes/console.php +++ b/routes/console.php @@ -38,3 +38,8 @@ Schedule::command('app:export-search-data-to-json')->dailyAt('2:00'); Schedule::command('events:generate-recurring')->dailyAt('01:00'); + +// Support Gmail copilot: ingest tickets by subject (codeweek-support), run dry-run, email for APPROVE. +Schedule::command('support:gmail:poll --max=10') + ->everyFiveMinutes() + ->when(fn () => (bool) config('support_gmail.enabled')); From cde6625394bba854d66f45a351589dcd7a752062 Mon Sep 17 00:00:00 2001 From: bernardhanna Date: Tue, 19 May 2026 15:10:13 +0100 Subject: [PATCH 2/2] feat(support): schedule Gmail poll every five minutes when enabled Automates ticket ingestion and dry-run workflow without manual artisan poll. Co-authored-by: Cursor --- routes/console.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/console.php b/routes/console.php index ff8de36fd..4a40e3f6b 100644 --- a/routes/console.php +++ b/routes/console.php @@ -38,3 +38,8 @@ Schedule::command('app:export-search-data-to-json')->dailyAt('2:00'); Schedule::command('events:generate-recurring')->dailyAt('01:00'); + +// Support Gmail copilot: ingest tickets by subject (codeweek-support), run dry-run, email for APPROVE. +Schedule::command('support:gmail:poll --max=10') + ->everyFiveMinutes() + ->when(fn () => (bool) config('support_gmail.enabled'));