Skip to content

Commit

Permalink
Add an updated new_contribs.sh and update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Nov 10, 2014
1 parent 7401a85 commit 2c4558b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@ for pr in $(xsel -ob); do firefox https://github.com/mozilla/rust/pull/$pr; slee
# write TWIR
```

## How I get new contributors:
Alternately use GitHub search:

new_contribs.sh 6/21/2014 > ~/entropy/newbies.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:

Where `new_contribs.sh` is:
new_contribs.sh 6/21/2014

```sh
#!/usr/bin/sh
## Building

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
```
pelican content -s pelicanconf.py
```
12 changes: 12 additions & 0 deletions new_contribs.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 2c4558b

Please sign in to comment.