From 6847212da35d85a302038d969480b7031a91645d Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 26 Feb 2020 09:54:03 +0100 Subject: Use user page on github when user email is private --- update-authors.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'update-authors.pl') diff --git a/update-authors.pl b/update-authors.pl index cd52f18..0b9d64e 100755 --- a/update-authors.pl +++ b/update-authors.pl @@ -58,5 +58,9 @@ sub GetNewAuthors { my @A = GetCurrentAuthors; my @B = GetNewAuthors; +for (@B) { + s/<\d+\+(.+?)%users\.noreply\.github\.com>/<$1%users\.noreply\.github\.com>/; + s/<(.+?)%users\.noreply\.github\.com>/https:\/\/github.com\/$1/; +} my @merged = sort { $a cmp $b } keys %{{map {($_ => 1)} (@A, @B)}}; print join(';',@merged) . ';'; -- cgit v1.2.1