diff options
Diffstat (limited to 'tools/import-gh-to-gitea')
-rw-r--r-- | tools/import-gh-to-gitea/README.org | 12 | ||||
-rwxr-xr-x | tools/import-gh-to-gitea/archive-projects.py | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/tools/import-gh-to-gitea/README.org b/tools/import-gh-to-gitea/README.org new file mode 100644 index 0000000..2e26b88 --- /dev/null +++ b/tools/import-gh-to-gitea/README.org @@ -0,0 +1,12 @@ +#+TITLE: Import GitHub repositories to gitea + +Scripts to move my repositories from GitHub to my instance of [[https://git.fcuny.net][gitea]]. + +* import repositories +#+begin_src sh +python3.10 import-gh-to-gitea.py -g (pass api/github/terraform|psub) -G (pass api/git.fcuny.net/gh-import|psub) +#+end_src +* archiving repositories +#+begin_src sh +python3.10 archive-projects.py -t (pass api/git.fcuny.net/gh-import|psub) +#+end_src diff --git a/tools/import-gh-to-gitea/archive-projects.py b/tools/import-gh-to-gitea/archive-projects.py index a940bd2..41bd898 100755 --- a/tools/import-gh-to-gitea/archive-projects.py +++ b/tools/import-gh-to-gitea/archive-projects.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 import argparse -import sys import requests |