[pkg-java-scripts] 02/02: Simplified the Salsa migration script
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Mar 5 11:34:26 GMT 2018
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository pkg-java-scripts.
commit 98e2de6c85e09291a2a922f16a08f584eaa6c284
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Mon Mar 5 12:34:02 2018 +0100
Simplified the Salsa migration script
---
migrate-to-salsa | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/migrate-to-salsa b/migrate-to-salsa
index 0b43348..fdf065d 100755
--- a/migrate-to-salsa
+++ b/migrate-to-salsa
@@ -47,7 +47,7 @@ SALSA_GROUP_ID=2588
echo "Migrating the ${PACKAGE} repository..."
RESPONSE=$(curl -s "$SALSA_URL/projects?private_token=$SALSA_TOKEN" \
- --data "path=$PACKAGE&namespace_id=$SALSA_GROUP_ID&import_url=$ALIOTH_REPO_URL&visibility=public")
+ --data "path=$PACKAGE&namespace_id=$SALSA_GROUP_ID&import_url=$ALIOTH_REPO_URL&visibility=public&issues_enabled=false&snippets_enabled=false&wiki_enabled=false&jobs_enabled=false&printing_merge_request_link_enabled=false")
echo $RESPONSE | jq --exit-status .id > /dev/null
check_return_code
@@ -82,13 +82,5 @@ check_return_code
# -----------------------------------------------------------------------------
-echo "Disabling issues, snippets, wiki, jobs and merge request URLs..."
-
-curl --silent --output /dev/null -XPUT --header "PRIVATE-TOKEN: $SALSA_TOKEN" $SALSA_URL/projects/$PROJECT_ID/ \
- --data "issues_enabled=false&snippets_enabled=false&wiki_enabled=false&jobs_enabled=false&printing_merge_request_link_enabled=false"
-check_return_code
-
-# -----------------------------------------------------------------------------
-
echo
echo "Migration complete! The new repository is located at ${SALSA_URL%/api*}/$SALSA_GROUP/$PACKAGE"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/pkg-java-scripts.git
More information about the pkg-java-commits
mailing list