Files
wekan/releases/mirror-gitlab.sh
T
Lauri Ojansivu b1983adbb6 Synchronize missing GitHub data to active WeKan mirrors
Repair Tools menu dispatch and run separate GitLab, Codeberg and SourceForge launchers through a shared engine on Unix and Windows. Read one paginated GitHub snapshot for all mirrors, match issue/comment provenance and release tags, and retry missing conversations and binary assets after partial runs. Preserve destination text and copy Git branches/tags without force or deletions. SourceForge uses Tracker tickets and SFTP release files; projects and wiki are excluded. Add offline API, retry, pagination, multipart upload and launcher regressions plus setup/scope documentation.
2026-09-13 20:05:29 +03:00

10 lines
410 B
Bash
Executable File

#!/bin/bash
# Human-run: synchronize missing GitHub data to this active mirror.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
export PATH="$ROOT/.tools/bin:${GOBIN:+$GOBIN:}$PATH"
FLAGS=(--apply --code)
if [ "${1:-}" = --preview ]; then FLAGS=(--code); shift; fi
node "$ROOT/tools/mirror-active-forges.mjs" --target gitlab "${FLAGS[@]}" "$@"