Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ fi
#MIGRATE_PROJECT_VARIABLES="no"
#MIGRATE_BADGES="no"
#MIGRATE_HOOKS="no"
#PROJECT_FILTER="^prefix"
CURL_PARAMS=""

unset -v sourceGitlabPrivateAccessToken targetGitlabPrivateAccessToken
Expand Down Expand Up @@ -131,9 +132,11 @@ function migrateGroup() {
# them here, making sure that the prefix matches the source path.
for project in "${allProjects[@]}"; do
if [[ "${project}" =~ ^${SOURCE_PATH} ]]; then
allProjectsFiltered+=(${project})
if [[ -z "${PROJECT_FILTER}" ]] || [[ "${project}" =~ ${PROJECT_FILTER} ]]; then
allProjectsFiltered+=(${project})
fi
else
echo "Skipping project outside group: ${project}"
echo "Skipping project outside group or filter: ${project}"
fi
done

Expand Down