Last active
November 21, 2023 07:24
-
-
Save ikhoon/edfdb71a8ca8206d09f9024e6098a25f to your computer and use it in GitHub Desktop.
Extract Armeria contributors
This file contains hidden or 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
#!/usr/bin/env bash | |
ARMERIA_DIR=??? # Path to Armeria project | |
RELEASE_NOTES_DIR=site/src/pages/release-notes | |
VERSIONS=$@ | |
all="" | |
for version in $VERSIONS; do | |
current=`grep " '" $ARMERIA_DIR/$RELEASE_NOTES_DIR/$version.mdx | sed "s/[',]//g"` | |
all="$all$current" | |
done | |
echo '<ThankYou usernames={[' | |
echo $all | tr " " "\n" | sort | uniq | awk '{ print " \x27"$1"\x27,"}' | |
echo ']} />' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example: