diff --git a/lib/common.sh b/lib/common.sh index 031e574..4e73ccc 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -206,6 +206,7 @@ _ENV_VAR_NAMES=( GITHUB_USERNAME GITHUB_TOKEN REPO_NAMES MIGRATE_ISSUES MIGRATE_LABELS MIGRATE_MILESTONES MIGRATE_WIKI + MIGRATION_POLL_INTERVAL_SEC MIGRATION_POLL_TIMEOUT_SEC GITHUB_MIRROR_INTERVAL TLS_MODE CADDY_DOMAIN CADDY_DATA_PATH PROTECTED_BRANCH REQUIRE_PR_REVIEW REQUIRED_APPROVALS @@ -228,6 +229,7 @@ _ENV_VAR_TYPES=( nonempty nonempty nonempty bool bool bool bool + positive_integer positive_integer nonempty tls_mode nonempty path nonempty bool integer diff --git a/setup/configure_env.sh b/setup/configure_env.sh index 0c86e90..99de3ec 100755 --- a/setup/configure_env.sh +++ b/setup/configure_env.sh @@ -65,7 +65,7 @@ get_env_val() { # Prompt function # --------------------------------------------------------------------------- # Base prompt count (fixed prompts + TLS conditional slots — repo/DB prompts added dynamically) -TOTAL_PROMPTS=61 +TOTAL_PROMPTS=63 CURRENT_PROMPT=0 LAST_SECTION="" @@ -355,6 +355,8 @@ prompt_var "MIGRATE_ISSUES" "Migrate GitHub issues" bool prompt_var "MIGRATE_LABELS" "Migrate GitHub labels" bool "true" "REPOSITORIES" prompt_var "MIGRATE_MILESTONES" "Migrate GitHub milestones" bool "false" "REPOSITORIES" prompt_var "MIGRATE_WIKI" "Migrate GitHub wiki" bool "false" "REPOSITORIES" +prompt_var "MIGRATION_POLL_INTERVAL_SEC" "Poll interval for async migration (seconds)" positive_integer "3" "REPOSITORIES" +prompt_var "MIGRATION_POLL_TIMEOUT_SEC" "Migration timeout per repo (seconds)" positive_integer "600" "REPOSITORIES" prompt_var "GITHUB_MIRROR_INTERVAL" "How often Gitea pushes to GitHub" nonempty "8h" "REPOSITORIES" # --- RUNNERS ---