Skip to content

Commit 51be351

Browse files
author
Nick Balestra
committed
update authors script
1 parent 9d06a28 commit 51be351

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

bin/update-authors.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
# Update AUTHORS.md based on git history.
3+
4+
git log --reverse --format='%aN (%aE)' | perl -we '
5+
BEGIN {
6+
%seen = (), @authors = ();
7+
}
8+
while (<>) {
9+
next if $seen{$_};
10+
next if /(support\@greenkeeper.io)/;
11+
$seen{$_} = push @authors, "- ", $_;
12+
}
13+
END {
14+
print "# Authors\n\n";
15+
print "#### Ordered by first contribution.\n\n";
16+
print @authors, "\n";
17+
print "#### Generated by bin/update-authors.sh.\n";
18+
}
19+
' > AUTHORS.md

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Create Cycle.js apps with zero configuration.",
55
"private": true,
66
"scripts": {
7+
"update-authors": "./bin/update-authors.sh",
78
"precommit": "standard && npm run test",
89
"postinstall": "lerna bootstrap",
910
"test": "lerna run test",

0 commit comments

Comments
 (0)