From cbfd402fc9c11bad4a5f9413e5a9da87039d70be Mon Sep 17 00:00:00 2001 From: Enrico Ludwig Date: Sun, 14 Jul 2024 13:54:03 +0200 Subject: [PATCH] Minor changes --- gitlab2gitea/gitlab2gitea.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gitlab2gitea/gitlab2gitea.py b/gitlab2gitea/gitlab2gitea.py index a02d1a1..a2ccf38 100644 --- a/gitlab2gitea/gitlab2gitea.py +++ b/gitlab2gitea/gitlab2gitea.py @@ -8,6 +8,8 @@ # Usage: # python3 gitlab2gitea.py [options] # +# --help Show this help message and exit +# # --gitlab-token GitLab access token # --gitlab-url GitLab URL # --gitlab-api-version GitLab API version (default: v4) @@ -977,8 +979,6 @@ def migrate_groups(): _warn('Dry-run mode enabled, skipping update of existing groups on Gitea...') except Exception as e: _exception(f'Failed to update existing groups: {e}', e) - - _info('Group migration completed!') def migrate_users(): gitlab_users = get_gitlab_users() @@ -1016,9 +1016,6 @@ def migrate_users(): _warn('Dry-run mode enabled, skipping update of existing users on Gitea...') except Exception as e: _exception(f'Failed to update existing users: {e}', e) - - _info('User migration completed!') - def migrate_projects(): gitlab_projects = get_gitlab_projects() @@ -1057,18 +1054,19 @@ def migrate_projects(): except Exception as e: _exception(f'Failed to update existing projects: {e}', e) - _info('Project migration completed!') - def run_migration(): _info('Migrating GitLab groups...') migrate_groups() + _info('Group migration completed!') _info('Migrating GitLab users...') migrate_users() + _info('User migration completed!') _info('Migrating GitLab projects...') migrate_projects() + _info('Project migration completed!') def main(): _info('Gitlab2Gitea v1.0 - by Zion Networks')