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