$ export GITHUB_TOKEN="GitHub PAT with public_repo permission"
$ npm install
$ npm start
> [email protected] start
> node index.js
Mean Time to First Commit based on Roster: 104.24 days
Mean Time to First Commit based on GitHub Onboarding Issues: 32.30 days
The MeanTimeToFirstCommitCalculator
calculates the mean time it takes for someone onboarding to VA.gov (onboarder) to make their first commit, also known as the "Mean Time to First Commit" (MTTFC).
This metric is collected by a scheduled GitHub Action pipeline, and the results are committed to mttfc-report.csv.
Each run of the calculator produces two calculations of the MTTFC. The reason for this is that there are currently two distinct sources of onboarder data:
For each onboarder, the calculator finds their first commit after their onboarding began to either vets-api
or vets-website
. The time to first commit is the number of days between the start of their onboarding and their first commit. These days-to-first-commit measurements are then averaged to produce a "mean time to first commit".