This repo contains the following actions workflow.
-
A workflow that will identify “stale” repos in an org or list of orgs. This workflow will take as input
- A list of orgs, comma separated.
- A number of days for considering if a repo is stale.
- A minimum repo size in megabytes. Only repos larger than this size will be considered.
The workflow will create a csv file for each org with the following fields:
- Repo name
- Number of days since last activity
- Repo size
- List of contributors
The csv file(s) will be checked into source control in the same repo as the workflow.
You will need to add a secret called TOKEN
to this repo. The value needs to be a PAT that has access to the orgs you are looking in.
Unit tests are contained in .github/scripts/test.js. In VSCode, you can run the Mocha
launch config from the debug interface to hit breakpoints and step through code.