initial commit

This commit is contained in:
2025-10-23 09:21:23 -07:00
commit a243eae91a
7 changed files with 140 additions and 0 deletions

28
import.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
source config.sh
if [ "$2" != "false" ]
then
private=true
else
private=false
fi
curl -sX 'POST' \
"${GT_DOMAIN}/api/v1/repos/migrate" \
-H 'accept: application/json' \
-H 'Authorization: token '${GT_TOKEN}'' \
-H 'Content-Type: application/json' \
-d '{
"auth_token": "'${GL_TOKEN}'",
"clone_addr": "'${GL_DOMAIN}'/'${GL_USER}'/'$1'",
"mirror": false,
"private": '$private',
"pull_requests": true,
"releases": true,
"repo_name": "'$1'",
"repo_owner": "'${GT_USER}'",
"service": "gitlab",
"wiki": true
}' | jq -r '.id'