Skip to content

Commit 32f481a

Browse files
committed
feat: repo org migration script support for single repo execution
ENT-11240
1 parent 069f24b commit 32f481a

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
help requirements impl-dev.clone.https impl-dev.clone.ssh impl-dev.provision \
6161
impl-dev.pull impl-dev.pull.without-deps impl-dev.up impl-dev.up.attach \
6262
impl-dev.up.without-deps selfcheck upgrade \
63-
validate-lms-volume migrate-enterprise-repos
63+
validate-lms-volume migrate-repo-git-to-edx
6464

6565
# Load up options (configurable through options.local.mk).
6666
include options.mk
@@ -292,6 +292,9 @@ dev.restart-container: ## Restart all service containers.
292292
dev.restart-container.%: ## Restart specific services' containers.
293293
docker compose restart $$(echo $* | tr + " ")
294294

295+
dev.migrate-repo-git-to-edx.%: ## Migrate enterprise repository clones from openedx to edx GitHub org.
296+
./migrate-repo-git-to-edx.sh $$(echo $* | tr + " ")
297+
295298
dev.stop: ## Stop all running services.
296299
docker compose stop
297300

@@ -503,6 +506,7 @@ $(addsuffix -logs, $(ALL_SERVICES_LIST)): %-logs: dev.logs.%
503506
$(addsuffix -attach, $(ALL_SERVICES_LIST)): %-attach: dev.attach.%
504507
$(addsuffix -shell, $(ALL_SERVICES_LIST)): %-shell: dev.shell.%
505508
$(addsuffix -static, $(ASSET_SERVICES_LIST)): %-static: dev.static.%
509+
$(addsuffix -migrate-repo-git-to-edx, $(ALL_SERVICES_LIST)): %-migrate-repo-git-to-edx: dev.migrate-repo-git-to-edx.%
506510

507511

508512
########################################################################################
@@ -564,5 +568,5 @@ build-courses: ## Build course and provision cms, and ecommerce with it.
564568
bash ./course-generator/create-courses.sh --cms --ecommerce course-generator/tmp-config.json
565569
rm course-generator/tmp-config.json
566570

567-
migrate-enterprise-repos: ## Migrate enterprise repository clones from openedx to edx GitHub org.
568-
./migrate-enterprise-repos.sh
571+
migrate-repo-git-to-edx: ## Migrate enterprise repository clones from openedx to edx GitHub org.
572+
./migrate-repo-git-to-edx.sh
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ REPOS=(
2525
# edx-enterprise-subsidy-client
2626
)
2727

28+
# If a specific repo has been requested, limit execution to that one only.
29+
if [[ $# -eq 1 ]] ; then
30+
REPOS=($1)
31+
fi
32+
2833
for repo in "${REPOS[@]}"; do
2934
echo "Updating $repo ..."
3035
if [ ! -d "$DEVSTACK_WORKSPACE/$repo" ]; then

0 commit comments

Comments
 (0)