This CLI tool tallies UBQ airdrop amounts for contributors. It does this by parsing issue comments for payout links from the UBQ bot using the GitHub GraphQL API.
-
GitHub Token
- Add the token to
.env
asGITHUB_TOKEN
.
- Add the token to
-
Install Dependencies
- Install the required dependencies using
npm
oryarn
.
# npm install
- Install the required dependencies using
-
Build the CLI
- Build the CLI using the available commands.
# npm run cli:build
-
Run the CLI
- Run the CLI using the available commands.
# npm run cli:start
-
start
- Display information about the available commands and their usage.
# yarn cli:start
-
single
- Tally UBQ airdrop for a specific repository or shortcode from the beginning of 2023.
# yarn cli:single [shortcode/repo-name]
-
tally
- Tally UBQ airdrop for all indexable repositories since the start of 2023.
# yarn cli:tally
-
tally-from
- Tally UBQ airdrop for all indexable repositories since a specified date (YYYY-MM-DD).
# yarn cli:tally-from [date]
-
tally-multi-csv
- Tally UBQ airdrop for all indexable repositories since the start of 2023 and output repository-specific CSV files.
# yarn cli:tally-multi-csv
-
help
- Display a list of indexable repositories and their shortcodes.
# yarn run cli:help
The CLI outputs three CSV files:
-
- Includes payments with or without an assignee. Manual checking required for entries without an assignee which is often due to issues having been reopened or manual payouts because of issues with the bot.
-
- Provides a username-to-UBQ mapping for total UBQ earned from all payments across all repositories since the chosen time.
-
- Lists repositories that have been indexed as having no payments released, including archived and inactive repositories. Manual checking may be required.
-
Tally UBQ airdrop for a specific repository or shortcode:
# npm run cli:single dollar || npm single ubiquity-dollar
-
Tally UBQ airdrop for all indexable repositories since the start of 2023:
# npm run cli:tally
-
Tally UBQ airdrop for all indexable repositories since a specified date:
# npm run cli:tally-from 2023-01-01
-
Tally UBQ airdrop for all indexable repositories since the start of 2023 and output repository-specific CSV files:
# npm run cli:tally-multi-csv
-
Display a list of indexable repositories and their shortcodes:
# npm run cli:help