- bash
- jq
- gh
- xargs
Use this link to generate a personal access token with at least the following rights:
- admin:public_key
- read:org
- read:packages
- repo
Copy generated link and store it in a local file (e.g.: mytoken.txt)!
# Authenticate against github.com by reading the token from a file
$ gh auth login --with-token < mytoken.txt
$ git clone THIS_REPO
$ cd THIS_REPO
$ bash create_repo_statistics.sh
$ git add *.csv
$ git commit -m "Add new results to files holding statistics."
$ git push
Append one line holding the repo name (without kit-data-manager) to 'repo_list.txt'. To skip a repository start line with '#'
To analyze statistics, you can import the csv files into Excel and analyze them with a pivot table as required. (See example)
Use links listed in organization_packages to collect download counts of packages.
âšī¸ If the list is no longer up to date due to new package(s) create a new list:
$ bash create_list_of_packages.sh
$ git add organization_packages.md
$ git commit -m "Refresh packages list."
$ git push