Skip to content

Commit

Permalink
Add script to count downloads
Browse files Browse the repository at this point in the history
Using the GitHub API, since there is no place in the UI where
this information is presented.
  • Loading branch information
rajadain committed Aug 23, 2018
1 parent c84ea12 commit 5e631c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/count-downloads
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -e

RELEASES_URL="https://api.github.com/repos/omenad/fonts/releases"
TOKEN=$(< ~/.github/TOKEN_REPO_INQUIRY)
PARSER="[ .[].assets[] | {name, download_count, created_at} ]"

http $RELEASES_URL Authorization:"token $TOKEN" | jq "$PARSER"

0 comments on commit 5e631c0

Please sign in to comment.