Loading sa5/delete_old_branches.sh +1 −3 Original line number Diff line number Diff line Loading @@ -36,10 +36,8 @@ echo "" > "$LOG_FILE" # Start fresh # ==== Loop over paginated branch list ==== while true; do echo "Fetching page $page... from $1/projects/$PROJECT_ID/repository/branches" curl --silent --header "PRIVATE-TOKEN: $PRIVATE_TOKEN" "$1/projects/$PROJECT_ID/repository/branches?page=$page" | jq response=$(curl --silent --header "PRIVATE-TOKEN: $PRIVATE_TOKEN" \ "$1/projects/$PROJECT_ID/repository/branches?page=$page") "$1/projects/$2/repository/branches?page=$page") count=$(echo "$response" | jq length) if [ "$count" -eq 0 ]; then Loading Loading
sa5/delete_old_branches.sh +1 −3 Original line number Diff line number Diff line Loading @@ -36,10 +36,8 @@ echo "" > "$LOG_FILE" # Start fresh # ==== Loop over paginated branch list ==== while true; do echo "Fetching page $page... from $1/projects/$PROJECT_ID/repository/branches" curl --silent --header "PRIVATE-TOKEN: $PRIVATE_TOKEN" "$1/projects/$PROJECT_ID/repository/branches?page=$page" | jq response=$(curl --silent --header "PRIVATE-TOKEN: $PRIVATE_TOKEN" \ "$1/projects/$PROJECT_ID/repository/branches?page=$page") "$1/projects/$2/repository/branches?page=$page") count=$(echo "$response" | jq length) if [ "$count" -eq 0 ]; then Loading