Skip to content

Commit e717c5f

Browse files
committed
ci: add special thanks script and mailmap
1 parent 5f1bea0 commit e717c5f

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

.mailmap

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Please keep this file in alphabetical order, per section.
2+
3+
4+
################################################################################
5+
# Angular Team
6+
################################################################################
7+
Hans Larsen <hans@hansl.ca>
8+
Igor Minar <igor@angularjs.org>
9+
Igor Minar <igor@angularjs.org> <iminar@google.com>
10+
11+
12+
################################################################################
13+
# Angular CLI Team
14+
################################################################################
15+
Filipe Silva <filipematossilva@gmail.com>
16+
Mike Brocchi <mbrocchi@gmail.com>
17+
18+
19+
################################################################################
20+
# OpenSource Contributors
21+
################################################################################
22+
Ashok Tamang <ashoktamang52@gmail.com>
23+
Ashok Tamang <ashoktamang52@gmail.com> <ashoktamang@google.com>
24+
Bram Borggreve <borggreve@gmail.com>
25+
Carlo Dapor <catull@gmail.com>
26+
<catull@gmail.com> <catull@users.noreply.github.com>
27+
Cédric Exbrayat <cedric@ninja-squad.com>
28+
Cédric Exbrayat <cedric@ninja-squad.com> <cexbrayat@users.noreply.github.com>
29+
Charles Lyding <clydin@users.noreply.github.com>
30+
Charles Lyding <clydin@users.noreply.github.com> <charles@thunderpos.com>
31+
Charles Lyding <clydin@users.noreply.github.com> <19598772+clydin@users.noreply.github.com>
32+
Chris Pearce <chris.pearce@seachangeinnovations.com>
33+
Chris Pearce <chris.pearce@seachangeinnovations.com> <ChrisPearce@users.noreply.github.com>
34+
Dominic Watson <domwatson@live.co.uk>
35+
Dominic Watson <domwatson@live.co.uk> <intellix@users.noreply.github.com>
36+
Jeremy Wells <jmw.jeremymwells@gmail.com>
37+
Jan Kuri <jkuri88@gmail.com>
38+
Jim Cummins <jim.for.cy@gmail.com>
39+
Jim Cummins <jim.for.cy@gmail.com> <jcummins@fisdap.net>
40+
John Papa <john@johnpapa.net>
41+
John Papa <john@johnpapa.net> <johnpapa@users.noreply.github.com>
42+
Meligy <eng.meligy@gmail.com>
43+
Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
44+
Preston Van Loon <preston@machinepowered.com>
45+
Preston Van Loon <preston@machinepowered.com> <pvanloon@google.com>
46+
Rodric Haddad <rody@rodyhaddad.com>
47+
Shai Reznik <shai.reznik@gmail.com>
48+
Shai Reznik <shai.reznik@gmail.com> <shairez@users.noreply.github.com>
49+
Shai Reznik <shai.reznik@gmail.com> <psyrez@gmail.com>
50+
Stephen Cavaliere <stephencavaliere@gmail.com>
51+
Stephen Cavaliere <stephencavaliere@gmail.com> <delasteve@users.noreply.github.com>

scripts/special-thanks.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
// tslint:disable:no-implicit-dependencies
9+
import { logging } from '@angular-devkit/core';
10+
import { execSync } from 'child_process';
11+
12+
export default function (opts: { sha: string }, logger: logging.Logger) {
13+
const authors = execSync(`git log ${opts.sha}.. --format="%aN"`).toString();
14+
15+
const counter = new Map<string, number>();
16+
for (const name of authors.split(/\r?\n/g)) {
17+
if (name) {
18+
const maybeCounter = counter.get(name);
19+
counter.set(name, (maybeCounter || 0) + 1);
20+
}
21+
}
22+
23+
const sortedCount = [...counter.entries()].sort((a, b) => b[1] - a[1]);
24+
25+
for (const count of sortedCount) {
26+
logger.info(count[0] + ' ' + count[1]);
27+
}
28+
}

0 commit comments

Comments
 (0)