mirror of
https://github.com/kevinveenbirkenbach/github-to-gitea-mirror.git
synced 2026-09-11 09:56:48 +00:00
Compare commits
1 Commits
main
...
a6037b9554
| Author | SHA1 | Date | |
|---|---|---|---|
| a6037b9554 |
7
.github/FUNDING.yml
vendored
7
.github/FUNDING.yml
vendored
@@ -1,7 +0,0 @@
|
|||||||
github: kevinveenbirkenbach
|
|
||||||
|
|
||||||
patreon: kevinveenbirkenbach
|
|
||||||
|
|
||||||
buy_me_a_coffee: kevinveenbirkenbach
|
|
||||||
|
|
||||||
custom: https://s.veen.world/paypaldonate
|
|
||||||
@@ -1,6 +1,4 @@
|
|||||||
# GitHub to Gitea Mirror 🚀🔄
|
# GitHub to Gitea Mirror 🚀🔄
|
||||||
[](https://github.com/sponsors/kevinveenbirkenbach) [](https://www.patreon.com/c/kevinveenbirkenbach) [](https://buymeacoffee.com/kevinveenbirkenbach) [](https://s.veen.world/paypaldonate)
|
|
||||||
|
|
||||||
[](./LICENSE) [](https://www.python.org/) [](https://github.com/kevinveenbirkenbach/github-to-gitea-mirror/stargazers)
|
[](./LICENSE) [](https://www.python.org/) [](https://github.com/kevinveenbirkenbach/github-to-gitea-mirror/stargazers)
|
||||||
|
|
||||||
**GitHub to Gitea Mirror** automatically detects repositories on GitHub that are not yet mirrored on Gitea and mirrors them—ensuring that your codebase remains consistent across both platforms.
|
**GitHub to Gitea Mirror** automatically detects repositories on GitHub that are not yet mirrored on Gitea and mirrors them—ensuring that your codebase remains consistent across both platforms.
|
||||||
|
|||||||
3
main.py
Executable file → Normal file
3
main.py
Executable file → Normal file
@@ -1,4 +1,3 @@
|
|||||||
#!/bin/python
|
|
||||||
import requests
|
import requests
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
import os
|
import os
|
||||||
@@ -42,7 +41,7 @@ for name, url in to_mirror.items():
|
|||||||
"repo_name": name,
|
"repo_name": name,
|
||||||
"uid": gitea_user_id
|
"uid": gitea_user_id
|
||||||
}
|
}
|
||||||
response = requests.post("https://git.veen.world/api/v1/repos/migrate", headers=HEADERS, json=data)
|
response = requests.post(f"https://git.veen.world/api/v1/repos/migrate", headers=HEADERS, json=data)
|
||||||
if response.status_code == 201:
|
if response.status_code == 201:
|
||||||
print(f"{name} was successfully mirrored.")
|
print(f"{name} was successfully mirrored.")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user