From e6952fae35ce33639a0f11ae0ef7fa944a780138 Mon Sep 17 00:00:00 2001 From: Camelid Date: Sun, 14 Mar 2021 15:02:01 -0700 Subject: [PATCH] Exclude draft PRs --- src/triage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/triage.rs b/src/triage.rs index 456be5a0..d69a1909 100644 --- a/src/triage.rs +++ b/src/triage.rs @@ -52,7 +52,7 @@ pub async fn pulls( } let mut pulls: Vec = Vec::new(); - for base_pull in base_pulls.into_iter() { + for base_pull in base_pulls.into_iter().filter(|pull| !pull.draft) { let assignee = base_pull.assignee.map_or("".to_string(), |v| v.login); let updated_at = base_pull .updated_at