From b31a39d07474b5c4c27f36862833029b546ecc20 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 45aa64e7..27b3b4e1 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