Skip to content

Commit 7ac3b9b

Browse files
committed
Temporarily disable new contributor welcomes
This query is taking too long, and is causing the webhook timeouts which prevents all work from completing.
1 parent 6a87f1f commit 7ac3b9b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: src/handlers/assign.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,14 @@ pub(super) async fn handle_input(
169169
// want any assignments or noise.
170170
return Ok(());
171171
}
172-
let welcome = if ctx
173-
.github
174-
.is_new_contributor(&event.repository, &event.issue.user.login)
175-
.await
172+
// This is temporarily disabled until we come up with a better
173+
// solution, or decide to remove this. The `is_new_contributor` query
174+
// is too expensive and takes too long to process.
175+
let welcome = if false
176+
&& ctx
177+
.github
178+
.is_new_contributor(&event.repository, &event.issue.user.login)
179+
.await
176180
{
177181
let who_text = match &assignee {
178182
Some(assignee) => WELCOME_WITH_REVIEWER.replace("{assignee}", assignee),

0 commit comments

Comments
 (0)