From 10e5a94c9d9f739859632aa2a0f5a41e08a608c1 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 29 Nov 2024 15:57:54 -0800 Subject: [PATCH] Allow empty commit message Although this is unlikely (or impossible?) to ever happen in practice, I don't feel comfortable with crashing triagebot if it ever happens. --- src/handlers/milestone_prs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/milestone_prs.rs b/src/handlers/milestone_prs.rs index 48150ed5..109cc6e1 100644 --- a/src/handlers/milestone_prs.rs +++ b/src/handlers/milestone_prs.rs @@ -163,7 +163,7 @@ async fn milestone_cargo( .message .lines() .next() - .expect("commit message"); + .unwrap_or_default(); merge_re.captures(first).map(|cap| { cap.get(1) .or_else(|| cap.get(2))