File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -72,20 +72,28 @@ sub groom_contributors {
72
72
my ( $self , $c , $release ) = @_ ;
73
73
74
74
my $contribs = $release -> {metadata }{x_contributors } || [];
75
+ my $authors = $release -> {metadata }{author } || [];
75
76
76
77
# just in case a lonely contributor makes it as a scalar
77
78
$contribs = [$contribs ]
78
79
if !ref $contribs ;
80
+ $authors = [$authors ]
81
+ if !ref $authors ;
79
82
83
+ my %seen = ( lc " $release ->{author}\@ cpan.org" => 1, );
80
84
my @contribs ;
81
- for my $contrib (@$contribs ) {
85
+
86
+ for my $contrib ( @$authors , @$contribs ) {
82
87
my $name = $contrib ;
83
88
$name =~ s /\s *<([^<>]+@[^<>]+)>// ;
84
89
my $info = {
85
90
name => $name ,
86
91
$1 ? ( email => $1 ) : (),
87
92
};
88
93
94
+ next
95
+ if $seen { $info -> {email } }++;
96
+
89
97
# heuristic to autofill pause accounts
90
98
if ( !$info -> {pauseid }
91
99
and $info -> {email } =~ / ^(.*)\@ cpan\. org$ / )
You can’t perform that action at this time.
0 commit comments