Skip to content

Commit

Permalink
Fixes for stars
Browse files Browse the repository at this point in the history
Signed-off-by: stianst <[email protected]>
  • Loading branch information
stianst committed Jan 29, 2025
1 parent 2d4328f commit 1cff19c
Show file tree
Hide file tree
Showing 2 changed files with 2,241 additions and 2,307 deletions.
5 changes: 3 additions & 2 deletions download-stars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ PAGES=$( gh api -X GET -F per_page=100 /repos/keycloak/keycloak/stargazers -i |

echo "Total pages: $PAGES"

rm -f /tmp/ghstars

if [ -f stars ]; then
CURRENT_NUM=$( cat stars | wc -l )
CURRENT_PAGE=$(( $CURRENT_NUM / 100 ))
CURRENT_PAGE=$( cat stars | cut -d ',' -f 1 | sort -n -r | uniq | head -n 1 )
cat stars | grep -v "^$PAGES," > /tmp/ghstars
else
CURRENT_PAGE=1
Expand Down
Loading

0 comments on commit 1cff19c

Please sign in to comment.