performance-report

command module
v0.0.0-...-35abb4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: Unlicense Imports: 5 Imported by: 0

README

performance-report

Creates a performance report using the GitLab API, comparing metrics against peers and superiors.

The results will be printed in human-readable format (example below).

It will also create a .csv file for each statistic in a local directory called results.

Example report

Human-readable terminal output

Below is an example report with numbers randomly generated:

Contributions per month
        peers:          XXX
        j.doe:          YYY
        superiors:      ZZZ
Merge requests per month
        peers:          XX
        j.doe:          YY
        superiors:      ZZ
Reviews per month
        peers:          XX
        j.doe:          YY
        superiors:      ZZ
CSV reports

Below is the content of the results/ directory after the report has run:

$ tree ./results
./results
├── Contributions_per_month.csv
├── Merge_requests_per_month.csv
└── Reviews_per_month.csv

0 directories, 3 files

Usage

  1. Create a file named config.yaml with the following content:

    username: "your_username"
    start_date: "YYYY-DD-MM"
    peer_usernames:
      - engineer1
      - engineer2
      - ...
    superior_usernames:
      - seniorEngineer1
      - seniorEngineer2
      - ...
    team_project_ids:
      - 12345 # https://gitlab.com/group/project1
      - 67890 # https://gitlab.com/group/project2
      - ...
    
  2. Run the report in the same directory as the files above:

    docker run --rm \
      -v $(pwd)/config.yaml:/run/config.yaml \
      -v $(pwd)/results:/run/results \
      registry.gitlab.com/mnielsen/performance-report:latest
    

Report icon by Icons8

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL