refactor: use REPO_NAMES in phase7_branch_protection.sh
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user