@jointly/spyone
v0.3.1
Published
A simple script able to download any Git repository and extracts statistics from its commits, showing most touched files.
Downloads
6
Readme
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 tomain
.output
(optional): Accepts {html|json}. Defaults tojson
.save
(optional): If provided, the resulting heatmap will be saved in a file in the current directory or in the directory specified inside thesave
parameter.