Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #2
Create a few utility scripts for batch operations on GitHub repositories in the reichlab organization. As of 2024-08-21, the org contains 152 repos.
Archiving repositories
When the package's
archive_repos
command runs, it will archive all 63 repos in this list.Adding rulesets
The "default" ruleset described below isn't meant to be prescriptive. Rather, it's a sensible baseline than can be augmented or revised as needed by anyone with admin access on the repo.
When the package
add_default_rulesets
command runs, it will add default GitHub rulesets to the default branch (usuallymaster
ormain
) of all 75 repos in this list.The ruleset we're adding is defined here.
At a high-level, this ruleset:
[The ruleset doesn't turn on "required checks" (for example running a test suite) because those are repo-specific; that exercise is left to individual repo owners]
If the ruleset causes any issues, it can be easily disabled:
The above lists were created based on this spreadsheet: https://docs.google.com/spreadsheets/d/1UaVsqGQ2uyI42t8HWTQjt0MthQJ-o4Yom0-Q2ahBnJc/edit?gid=1230520805#gid=1230520805
The remaining 14 repos will not be updated at this time: