From 3d0532ca404056746fcb8970cb011e1926f2d275 Mon Sep 17 00:00:00 2001 From: S Date: Sun, 1 Mar 2026 10:08:42 -0500 Subject: [PATCH] docs: update README.md for dynamic repo list Replace "hardcoded 3-repo limit" section with dynamic REPO_NAMES docs. Co-Authored-By: Claude Opus 4.6 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2099ca6..92f936d 100644 --- a/README.md +++ b/README.md @@ -154,9 +154,9 @@ All `log_*` functions write to stderr. API wrappers return JSON on stdout. This Unraid and Fedora use the same `GITEA_ADMIN_USER` and `GITEA_ADMIN_PASSWORD`. This simplifies setup (one set of credentials) and makes the pull mirror authentication straightforward (Fedora authenticates to Unraid using the shared admin password). The trade-off is reduced isolation — compromising one set of credentials compromises both instances. For a personal or small-team setup, this is acceptable. -### Hardcoded 3-repo limit +### Dynamic repo list -The scripts read `REPO_1_NAME`, `REPO_2_NAME`, `REPO_3_NAME` from `.env`. This was chosen over a dynamic list because the migration targets exactly 3 repos and a variable-length list in `.env` (e.g., comma-separated) would require more complex parsing and validation. Extending to N repos means adding `REPO_N_NAME` variables and updating the `REPOS=()` arrays in each phase script. +The scripts read `REPO_NAMES` from `.env` — a space-delimited list of repo names (e.g., `REPO_NAMES=myapp backend infra`). The `get_repo_list()` helper in `lib/common.sh` splits it into individual names. Phase scripts use `read -ra REPOS <<< "$REPO_NAMES"` to build an array, supporting any number of repos. ### Workflow migration is syntactic, not semantic