Skip to content

Commit 66fa049

Browse files
committed
Don't panic for non-alphanumeric reviewer
1 parent 98590d8 commit 66fa049

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/main.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,11 @@ fn parse_bors_reviewer(
321321
.filter(|r| !r.is_empty())
322322
.filter(|r| *r != "<try>")
323323
.inspect(|r| {
324-
if !r
325-
.chars()
326-
.all(|c| c.is_alphabetic() || c.is_digit(10) || c == '-' || c == '_')
327-
{
328-
panic!(
329-
"to_author for {} contained non-alphabetic characters: {:?}",
324+
if !r.chars().all(|c| {
325+
c.is_alphabetic() || c.is_digit(10) || c == '-' || c == '_' || c == '='
326+
}) {
327+
eprintln!(
328+
"warning: to_author for {} contained non-alphabetic characters: {:?}",
330329
commit.id(),
331330
r
332331
);

0 commit comments

Comments
 (0)