Skip to content

Commit e824abf

Browse files
devtools/credit: add aliases of previous namers
It was suggesting past namers as new namers. Also fixed the count extraction so that @21M4TW would be properly credited. Changelog-None
1 parent 529337a commit e824abf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

devtools/credit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ fi
2020
git log "$PREV_TAG".. --format="%an|%ae" | sort | uniq -c | sort -rn > /tmp/authors.$$
2121
sed -n 's/.*[Nn]amed by //p' < CHANGELOG.md | sed 's/(.*)//' | tr -dc '[:alnum:][:space:]' > /tmp/namers.$$
2222
git log "$PREV_TAG" --format="%an|%ae" | sort -u > /tmp/prev-authors.$$
23+
# Include aliases
24+
printf "Alex Myers\nShahanaFarooqui\nMatt Whitlock\n" >> /tmp/namers.$$
2325

2426
NAMER=""
2527
BACKUP_NAMER=""
2628
TOTAL=0
2729
while read LINE; do
28-
COUNT=${LINE%% [! 0123456789]*}
30+
COUNT=$(echo "$LINE" | sed -r "s/[^0-9].*//")
2931
TOTAL=$((TOTAL + COUNT))
3032
LINE=${LINE#*[1234567890] }
3133
NAME=${LINE%%|*}

0 commit comments

Comments
 (0)