Add an updated new_contribs.sh and update README.md

This commit is contained in:
Brian Anderson 2014-11-09 18:28:50 -08:00
parent 7401a858cf
commit 2c4558b138
2 changed files with 27 additions and 16 deletions

View File

@ -13,21 +13,20 @@ for pr in $(xsel -ob); do firefox https://github.com/mozilla/rust/pull/$pr; slee
# write TWIR # write TWIR
``` ```
## How I get new contributors: Alternately use GitHub search:
new_contribs.sh 6/21/2014 > ~/entropy/newbies.txt
Where `new_contribs.sh` is:
```sh
#!/usr/bin/sh
INITIAL_COMMIT=c01efc6
START_COMMIT=`git log --before="$1" --author=bors --pretty=format:%H|head -n1`
ALL_NAMES=`git log $INITIAL_COMMIT.. --pretty=format:%an|sort|uniq`
OLD_NAMES=`git log $INITIAL_COMMIT..$START_COMMIT --pretty=format:%an|sort|uniq`
echo "$OLD_NAMES">names_old.txt
echo "$ALL_NAMES">names_all.txt
diff names_old.txt names_all.txt
rm names_old.txt names_all.txt
``` ```
https://github.com/rust-lang/rust/pulls?q=is%3Apr+is%3Amerged+updated%3A2014-11-03..2014-11-10
```
## How I get new contributors:
Use the included `new_contribs.sh` script:
new_contribs.sh 6/21/2014
## Building
```
pelican content -s pelicanconf.py
```

12
new_contribs.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
INITIAL_COMMIT=c01efc6
START_COMMIT=`git log --before="$1" --author=bors --pretty=format:%H|head -n1`
ALL_NAMES=`git log $INITIAL_COMMIT.. --pretty=format:%an|sort|uniq`
OLD_NAMES=`git log $INITIAL_COMMIT..$START_COMMIT --pretty=format:%an|sort|uniq`
echo "$OLD_NAMES">names_old.txt
echo "$ALL_NAMES">names_all.txt
names=`diff names_old.txt names_all.txt`
rm names_old.txt names_all.txt
names=`echo "$names" | grep \> | sed 's/^>/*/'`
echo "$names"