From 7ac3b9b813c7eac7d6f3e7f351d272f23fbdceb1 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 24 Feb 2025 06:17:07 -0800 Subject: [PATCH] Temporarily disable new contributor welcomes This query is taking too long, and is causing the webhook timeouts which prevents all work from completing. --- src/handlers/assign.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/handlers/assign.rs b/src/handlers/assign.rs index 9585a61b..d881ba5d 100644 --- a/src/handlers/assign.rs +++ b/src/handlers/assign.rs @@ -169,10 +169,14 @@ pub(super) async fn handle_input( // want any assignments or noise. return Ok(()); } - let welcome = if ctx - .github - .is_new_contributor(&event.repository, &event.issue.user.login) - .await + // This is temporarily disabled until we come up with a better + // solution, or decide to remove this. The `is_new_contributor` query + // is too expensive and takes too long to process. + let welcome = if false + && ctx + .github + .is_new_contributor(&event.repository, &event.issue.user.login) + .await { let who_text = match &assignee { Some(assignee) => WELCOME_WITH_REVIEWER.replace("{assignee}", assignee),