Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 1.57 KB

README.md

File metadata and controls

75 lines (53 loc) · 1.57 KB

Contribution stats

The goal of this script is to extract the commits stats made by 3mdeb employees in various upstream repositories.

This project uses bashly as a script generator.

Usage

  • Sync
contribution-stats sync - Clone and/or all tracked upstream repositories

Alias: s

Usage:
  contribution-stats sync
  contribution-stats sync --help | -h

Options:
  --help, -h
    Show this help

Examples:
  contribution-stats sync

NOTE: To sync all repositories that 3mdeb contributed to you need at least 31GB free space.

  • List
contribution-stats list - List contribution stats

Alias: l

Usage:
  contribution-stats list [OPTIONS]
  contribution-stats list --help | -h

Options:
  --repo, -r REPOSITORY
    Repository to analyze. If not given, all tracked repositories will be
    analyzed.

  --date, -d DATE
    Start date for analyze - only commits older than this date will be listed.
    Defaults to 01/01/2013.
    Default: 01/01/2013

  --help, -h
    Show this help

Examples:
  contribution-stats list
  contribution-stats -r coreboot -d 21/02/2023

Development

Please note that after every code modification in src you have to run bashly generate. Typical developer workflow would looks as follows:

  1. Set alias for bashly:
alias bashly='docker run --rm -it --user $(id -u):$(id -g) --volume "$PWD:/app" dannyben/bashly'
  1. Perform code modification in src directory.
  2. Apply changes by bashly generate
  3. Test your changes.
  4. If your changes work as expected create pull request.