File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -752,11 +752,11 @@ def co_authors(self) -> List[Actor]:
752752
753753 if self .message :
754754 results = re .findall (
755- r"^Co-authored-by: ((?:\w|\-| ){0,38} <\S*>) $" ,
755+ r"^Co-authored-by: (.*) <(.*?)> $" ,
756756 self .message ,
757757 re .MULTILINE ,
758758 )
759- for author_string in results :
760- co_authors .append (Actor . _from_string ( author_string ))
759+ for author in results :
760+ co_authors .append (Actor ( * author ))
761761
762762 return co_authors
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ def test_commit_co_authors(self):
517517Co-authored-by: Test User 1 <602352+test@users.noreply.github.com>
518518Co-authored-by: test_user_2 <another_user-email@github.com>
519519Co_authored_by: test_user_x <test@github.com>
520- Co-authored-by: test_user_y <poorly formatted email @github.com>
520+ Co-authored-by: test_user_y <test @github.com> text
521521Co-authored-by: test_user_3 <test_user_3@github.com>"""
522522 assert commit .co_authors == [
523523 Actor ("Test User 1" , "602352+test@users.noreply.github.com" ),
You can’t perform that action at this time.
0 commit comments