adding verbose mode, readme info for environment, and cleanup - #118
Open
sam1el wants to merge 6 commits into
Open
adding verbose mode, readme info for environment, and cleanup#118sam1el wants to merge 6 commits into
sam1el wants to merge 6 commits into
Conversation
Signed-off-by: jeff <[email protected]>
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
added 5 commits
April 23, 2026 10:17
Signed-off-by: jeff <[email protected]>
Signed-off-by: jeff <[email protected]>
Signed-off-by: jeff <[email protected]>
Signed-off-by: jeff <[email protected]>
Signed-off-by: jeff <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Improves the org project cycle script so large and automation-heavy runs are safer, clearer, and faster: preview without writes, better observability, optional “activate only inactive” mode, an extra SCM origin, and thread-pool workers for parallel API calls.
What changed
--dry-run— List orgs, filters, and the projects that would be cycled (or activated) without calling deactivate/activate.-v/--verbose— Extra logging (environment URLs, org visibility, per-request details).--workers, OAuth vs token, FedRAMP reminder).--activate-inactive-only— Skip the deactivate pass; only activate projects that are already inactive (re-monitor).github-cloud-appas an import origin (alongside e.g.github,gitlab).--workers N— Parallel deactivate/activate via a thread pool (1–64); when> 1, requires credentials in the environment (no interactive token prompt).yaspinadded for progress in parallel runs..vscode/settings.jsonin the subfolder (editor defaults for this project).Files
deactivate-reactivate/main.py— CLI flags, dry-run/verbose/parallel paths,github-cloud-appin origin help.deactivate-reactivate/README.md— User-facing documentation aligned with the new flags.deactivate-reactivate/requirements.txt— New dependencies for the updated script.How to test
pip install -r deactivate-reactivate/requirements.txtpython3 main.py --orgs <slug> --dry-runand confirm listed orgs/projects and no writes.python3 main.py --orgs <slug> --dry-run -vand confirm verbose output.--origins github github-cloud-app/--activate-inactive-only/--workers 4withSNYK_TOKEN(or OAuth) in the environment.