6 Commits

Author SHA1 Message Date
gabrie30
eceb10f6d4
Add GHORG_FETCH_ALL check to no-clean mode processing (#594)
The handleNoCleanMode function now only performs fetch-all operations if GHORG_FETCH_ALL is set to true, improving control over repository processing. Added tests to verify behavior when fetch-all is enabled and disabled.
2025-11-08 07:36:03 -08:00
gabrie30
5c1d87b69d
updates 2025-11-03 21:58:34 -08:00
gabrie30
fd26d5e698
Add clone delay option with auto concurrency adjustment (#567)
* Add clone delay option with auto concurrency adjustment

Introduces GHORG_CLONE_DELAY_SECONDS to control delay between cloning repositories for rate limiting. When set to a value greater than 0, concurrency is automatically set to 1 for predictable behavior. Updates CLI flags, environment variable defaults, config printing, and sample config documentation. Applies delay before cloning or pulling repositories.

* Refactor clone delay logic and add helper functions

Introduced helper functions for parsing and applying clone delay configuration, improving code reuse and readability. Centralized delay logic in repository processing and removed duplicate environment variable checks. Now, clone delay is consistently applied and concurrency is auto-adjusted when necessary.
2025-08-28 17:35:40 -07:00
gabrie30
805422943a
Track and record clone operation duration in stats (#560) 2025-08-24 18:36:18 -07:00
gabrie30
f561d77357
Ensure credentials are stripped from git remotes after fetch (#559) 2025-08-24 15:56:25 -07:00
gabrie30
be75c52bc9
Refactor repo filtering and processing logic and GitLab Integration tests (#551) 2025-08-24 11:34:33 -07:00