forked from pgjdbc/pgjdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_notes_filter.pl
121 lines (111 loc) · 4.48 KB
/
release_notes_filter.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/bin/perl
use strict;
my $version = shift;
my %author_url = (
'Alexander Kjäll' => 'https://github.com/alexanderkjall',
'AlexElin' => 'https://github.com/AlexElin',
'Álvaro Hernández Tortosa' => 'https://github.com/ahachete',
'aryabukhin' => 'https://github.com/aryabukhin',
'Barnabas Bodnar' => 'https://github.com/bbodnar',
'bd-infor' => 'https://github.com/bd-infor',
'bpd0018' => 'https://github.com/bpd0018',
'Brett Okken' => 'https://github.com/bokken',
'Brett Wooldridge' => 'https://github.com/brettwooldridge',
'chalda' => 'https://github.com/ochaloup',
'Chen Huajun' => 'https://github.com/ChenHuajun',
'Christian Ullrich' => 'https://github.com/chrullrich',
'Christopher Deckers' => 'https://github.com/Chrriis',
'Daniel Gustafsson' => 'https://github.com/danielgustafsson',
'Daniel Migowski' =>'https://github.com/dmigowski',
'Dave Cramer' => '[email protected]',
'djydewang' => 'https://github.com/djydewang',
'eperez' => 'https://github.com/eperez',
'Eric McCormack' => 'https://github.com/ericmack',
'Florin Asăvoaie' => 'https://github.com/FlorinAsavoaie',
'George Kankava' => 'https://github.com/georgekankava',
'goeland86' => 'https://github.com/goeland86',
'Hugh Cole-Baker' => 'https://github.com/sigmaris',
'Jacques Fuentes' => 'https://github.com/jpfuentes2',
'James' => 'https://github.com/jamesthomp',
'Jamie Pullar' => 'https://github.com/JamiePullar',
'JCzogalla' => 'https://github.com/JCzogalla',
'Jeff Klukas' => 'https://github.com/jklukas',
'Jeremy Whiting' => 'https://github.com/whitingjr',
'Joe Kutner' => 'https://github.com/jkutner',
'Jordan Lewis' => 'https://github.com/jordanlewis',
'Jorge Solorzano' => 'https://github.com/jorsol',
'Laurenz Albe' => 'https://github.com/laurenz',
'Magnus Hagander' => 'https://github.com/mhagander',
'Magnus' => 'https://github.com/magJ',
'Marc Petzold' => 'https://github.com/dosimeta',
'Marios Trivyzas' => 'https://github.com/matriv',
'Mathias Fußenegger' => 'https://github.com/mfussenegger',
'Michael Glaesemann' => 'https://github.com/grzm',
'MichaelZg' => 'https://github.com/michaelzg',
'Minglei Tu' => 'https://github.com/tminglei',
'mjanczykowski' => 'https://github.com/mjanczykowski',
'Pavel Raiskup' => 'https://github.com/praiskup',
'Pawel' => 'https://github.com/veselov',
'Petro Semeniuk' => 'https://github.com/PetroSemeniuk',
'Philippe Marschall' => 'https://github.com/marschall',
'Piyush Sharma' => 'https://github.com/ps-sp',
'Rikard Pavelic' => 'https://github.com/zapov',
'rnveach' => 'https://github.com/rnveach',
'Robert Zenz' => 'https://github.com/RobertZenz',
'Robert \'Bobby\' Zenz' => 'https://github.com/RobertZenz',
'Roman Ivanov' => 'https://github.com/romani',
'Sebastian Utz' => 'https://github.com/seut',
'Sehrope Sarkuni' => 'https://github.com/sehrope',
'Selene Feigl' => 'https://github.com/sfeigl',
'Simon Stelling' => 'https://github.com/stellingsimon',
'slmsbrhgn' => 'https://github.com/slmsbrhgn',
'Steve Ungerer' => 'https://github.com/scubasau',
'Tanya Gordeeva' => 'https://github.com/tmgordeeva',
'Thach Hoang' => 'https://github.com/thachhoang',
'trtrmitya' => 'https://github.com/trtrmitya',
'Trygve Laugstøl' => 'https://github.com/trygvis',
'Vladimir Gordiychuk' => 'https://github.com/Gordiychuk',
'Vladimir Sitnikov' => 'https://github.com/vlsi',
'zapov' => 'https://github.com/zapov',
'Zemian Deng' => 'https://github.com/zemian',
);
my %authors;
while(<>) {
if ($_ !~ /@@@/) {
print $_;
if ($_ =~ /(.*) \(\d+\):/) {
$authors{$1} = 1;
print "\n";
}
next;
}
my @c = split('@@@', $_);
my $subject = @c[0];
my $sha = @c[1];
my $shortSha = @c[2];
my $pr = '';
if ($subject =~ /\(#(\d+)\)/) {
$subject =~ s;\(#(\d+)\);[PR#\1](https://github.com/pgjdbc/pgjdbc/pull/\1);;
} else {
my $body = `git log --format='%B' -n 1 $sha`;
if ($body =~ /(?:fix|fixes|close|closes) *#?(\d+)/) {
$pr = $1;
}
}
if ($pr != '') {
$pr = ' [PR#'.$pr.'](https://github.com/pgjdbc/pgjdbc/pull/'.$pr.')';
}
$subject =~ s/^\s+/* /;
print $subject.$pr." [".$shortSha."](https://github.com/pgjdbc/pgjdbc/commit/$sha)\n";
}
print "<a name=\"contributors_{{ page.version }}\"></a>\n";
print "### Contributors to this release\n\n";
print "We thank the following people for their contributions to this release.\n\n";
for my $c (sort keys(%authors)) {
if ($author_url{$c}) {
print "[$c](".$author_url{$c}.")";
} else {
print $c;
}
print " \n"
}