Skip to content

Commit

Permalink
Allow empty commit message
Browse files Browse the repository at this point in the history
Although this is unlikely (or impossible?) to ever happen in practice,
I don't feel comfortable with crashing triagebot if it ever happens.
  • Loading branch information
ehuss committed Nov 29, 2024
1 parent 7cf03cd commit 10e5a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/milestone_prs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 10e5a94

Please sign in to comment.