From 33a1390b8cc17db81a2d17e99a8b3ac722d568de Mon Sep 17 00:00:00 2001 From: Tobias Schmitz Date: Wed, 27 May 2026 12:42:02 +0200 Subject: [PATCH] Remove waiting-on-author label --- src/github.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/github.rs b/src/github.rs index 309edd3..70470c4 100644 --- a/src/github.rs +++ b/src/github.rs @@ -124,15 +124,11 @@ pub async fn run_github_check( has_new_packages = true; } } - let mut labels = pr - .labels - .iter() + const REMOVE_LABELS: [&str; 3] = ["new", "updated", "waiting-on-author"]; + let mut labels = (pr.labels.iter()) .filter_map(|l| { - if l.name != "new" && l.name != "updated" { - Some(l.name.clone()) - } else { - None - } + let remove = REMOVE_LABELS.contains(&l.name.as_str()); + (!remove).then(|| l.name.clone()) }) .collect::>(); if has_new_packages {