Skip to content

Commit

Permalink
Temporarily disable new contributor welcomes
Browse files Browse the repository at this point in the history
This query is taking too long, and is causing the webhook timeouts which
prevents all work from completing.
  • Loading branch information
ehuss committed Feb 24, 2025
1 parent 6a87f1f commit 7ac3b9b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/handlers/assign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7ac3b9b

Please sign in to comment.