Git Product home page Git Product logo

ubq-airdrop-cli's Introduction

UBQ Airdrop Tally Tool

Overview

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.

Setup

  1. GitHub Token

    • Add the token to .env as GITHUB_TOKEN.
  2. Install Dependencies

    • Install the required dependencies using npm or yarn.
    # npm install
  3. Build the CLI

    • Build the CLI using the available commands.
    # npm run cli:build
  4. Run the CLI

    • Run the CLI using the available commands.
    # npm run cli:start

Commands

  1. start

    • Display information about the available commands and their usage.
    # yarn cli:start
  2. single

    • Tally UBQ airdrop for a specific repository or shortcode from the beginning of 2023.
    # yarn cli:single [shortcode/repo-name]
  3. tally

    • Tally UBQ airdrop for all indexable repositories since the start of 2023.
    # yarn cli:tally
  4. tally-from

    • Tally UBQ airdrop for all indexable repositories since a specified date (YYYY-MM-DD).
    # yarn cli:tally-from [date]
  5. 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
  6. help

    • Display a list of indexable repositories and their shortcodes.
    # yarn run cli:help

Output

The CLI outputs three CSV files:

  1. All Payments

    • 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.
  2. Contributors

    • Provides a username-to-UBQ mapping for total UBQ earned from all payments across all repositories since the chosen time.
  3. No Payments

    • Lists repositories that have been indexed as having no payments released, including archived and inactive repositories. Manual checking may be required.

Usage Examples

  1. Tally UBQ airdrop for a specific repository or shortcode:

    # npm run cli:single dollar || npm single ubiquity-dollar
  2. Tally UBQ airdrop for all indexable repositories since the start of 2023:

    # npm run cli:tally
  3. Tally UBQ airdrop for all indexable repositories since a specified date:

    # npm run cli:tally-from 2023-01-01
  4. Tally UBQ airdrop for all indexable repositories since the start of 2023 and output repository-specific CSV files:

    # npm run cli:tally-multi-csv
  5. Display a list of indexable repositories and their shortcodes:

    # npm run cli:help

ubq-airdrop-cli's People

Contributors

keyrxng avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.