refactor: use REPO_NAMES in phase7_branch_protection.sh

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
S
2026-03-01 10:05:45 -05:00
parent ce77fab000
commit e511947267

View File

@@ -16,12 +16,12 @@ source "${SCRIPT_DIR}/lib/common.sh"
load_env
require_vars GITEA_ADMIN_TOKEN GITEA_INTERNAL_URL GITEA_ORG_NAME \
REPO_1_NAME REPO_2_NAME REPO_3_NAME \
REPO_NAMES \
PROTECTED_BRANCH REQUIRE_PR_REVIEW REQUIRED_APPROVALS
phase_header 7 "Branch Protection"
REPOS=("$REPO_1_NAME" "$REPO_2_NAME" "$REPO_3_NAME")
read -ra REPOS <<< "$REPO_NAMES"
SUCCESS=0
FAILED=0