From e824abfccfe73aee9607ef1bea99ed6c7f7c4f06 Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Thu, 13 Feb 2025 14:09:55 -0600 Subject: [PATCH] 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 --- devtools/credit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devtools/credit b/devtools/credit index cdcae728ea71..4018f5a72115 100755 --- a/devtools/credit +++ b/devtools/credit @@ -20,12 +20,14 @@ fi git log "$PREV_TAG".. --format="%an|%ae" | sort | uniq -c | sort -rn > /tmp/authors.$$ sed -n 's/.*[Nn]amed by //p' < CHANGELOG.md | sed 's/(.*)//' | tr -dc '[:alnum:][:space:]' > /tmp/namers.$$ git log "$PREV_TAG" --format="%an|%ae" | sort -u > /tmp/prev-authors.$$ +# Include aliases +printf "Alex Myers\nShahanaFarooqui\nMatt Whitlock\n" >> /tmp/namers.$$ NAMER="" BACKUP_NAMER="" TOTAL=0 while read LINE; do - COUNT=${LINE%% [! 0123456789]*} + COUNT=$(echo "$LINE" | sed -r "s/[^0-9].*//") TOTAL=$((TOTAL + COUNT)) LINE=${LINE#*[1234567890] } NAME=${LINE%%|*}