Skip to content

Instantly share code, notes, and snippets.

@ikhoon
Last active November 21, 2023 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikhoon/edfdb71a8ca8206d09f9024e6098a25f to your computer and use it in GitHub Desktop.
Save ikhoon/edfdb71a8ca8206d09f9024e6098a25f to your computer and use it in GitHub Desktop.
Extract Armeria contributors
#!/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 ']} />'
@ikhoon
Copy link
Author

ikhoon commented Jul 4, 2022

Example:

./contributors.sh 1.13.4 1.14.0 1.14.1 1.15.0 1.16.0 1.17.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment