peter-murray / inactive-users-action

GitHub Action for generating a report on user activity in a GitHub Enterprise Organization.
MIT License
70 stars 32 forks source link

Add configurable delay between repos #10

Open naikrovek opened 1 year ago

naikrovek commented 1 year ago

I ran this on an org in my GHEC enterprise, and it is the largest org by far in my enterprise and is only going to get larger. Currently ~800 repos and will probably be over 8000 repos within a year as migrations from GHES continue.

This action uses API quota faster than it is replenished, and when I want to scan an org larger than about 1200 repos, I will need to do some waiting, because that will consume my entire API quota in less than 1 hour.

It would be wonderful if there could be a configurable delay in the loop that collects info on all the repositories.

I don't know how to do synchronous delays in JavaScript or I would submit a PR myself, or just maintain a fork that I would use.

Thank you.