-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🍥(new)
Authors.md
doc & auto-updating script added!
- Loading branch information
1 parent
9940fac
commit a6c2b89
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Project Authors :tada: | ||
|
||
- Klaus Sinani (<klauscfhq@protonmail.com>) | ||
|
||
Ordered by oldest contribution - Generated by `bin/update-authors.sh` :rocket: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
# Updates authors.md based on git history | ||
# Forked from @feross's https://github.com/webtorrent/webtorrent/blob/master/bin/update-authors.sh | ||
|
||
git log --reverse --format='%aN (<%aE>)' | perl -we ' | ||
BEGIN { | ||
%seen = (), @authors = (); | ||
} | ||
while (<>) { | ||
next if $seen{$_}; | ||
$seen{$_} = push @authors, "- ", $_; | ||
} | ||
END { | ||
print "## Project Authors :tada:\n\n"; | ||
print @authors, "\n"; | ||
print "Ordered by oldest contribution - Generated by `bin/update-authors.sh` :rocket:\n"; | ||
} | ||
' > ../authors.md |