0.3.1 • Published 6 months ago

@jointly/spyone v0.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

spyone is a tool that generates a JSON heatmap of any Git repository's commits showing most edited files.
It comes from the italian word spione, which means spy.

Please, keep in mind this project is not perfect. It was made to analyze our most edited files to create some sort of heatmap of the technical debt of our internal projects.

What does it do?

This script downloads any Git repository and extracts statistics from its commits. The resulting data is then sorted by commit count, and if there is a tie, by the sum of additions and deletions in descending order. The result is opened in your default browser and you're able to save it in any location on your computer.

Usage

To use it, run the following command:

npx @jointly/spyone

You will be prompted to enter the URL of the repository you want to analyze, the number of days to consider when extracting data from commits, the name of the branch to consider and the output format.

You can provide all the parameters in the command line, like this:

npx @jointly/spyone --repoUrl=<repo-url> --days=30 --branch=main --output=html

and you don't need to provide any input.

You will be able to save the resulting heatmap in any location on your computer just with --save flag:

npx @jointly/spyone --repoUrl=<repo-url> --days=30 --branch=main --output=html --save

Parameters

  • repoUrl: the URL of the GitHub repository to extract statistics from. This can be either an https or ssh URL.
  • days: the number of days before today to consider when extracting data from commits. We suggest 30 for highly updated projects and 90 days for common day-to-day work projects.
  • branch (optional): the name of the branch to consider. Defaults to main.
  • output (optional): Accepts {html|json}. Defaults to json.
  • save (optional): If provided, the resulting heatmap will be saved in a file in the current directory or in the directory specified inside the save parameter.
0.3.1

6 months ago

0.3.0

12 months ago

0.1.0

1 year ago

0.0.2

1 year ago