mirror of
https://github.com/kevinveenbirkenbach/github-to-gitea-mirror.git
synced 2025-03-27 21:53:33 +01:00
GitHub to Gitea Mirror 🚀🔄
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.
🔧 Features
- Auto-Detection: Identifies GitHub repos missing on Gitea.
- Seamless Mirroring: Automatically mirrors repositories using the Gitea API.
- Secure Authentication: Utilizes environment variables and tokens for secure API access.
🚀 Installation
Install GitHub to Gitea Mirror via Kevin's Package Manager:
pkgman install gigimi
🛠️ Setup & Usage
-
Install Required Packages:
If you haven't already, install the required Python packages:
pip install python-dotenv requests
-
Create a
.env
File:In your project directory, create a
.env
file with the following content:GITHUB_USER=your_github_username GITEA_USER=your_gitea_username GITEA_TOKEN=your_gitea_token
-
Run the Script:
Execute the script to start mirroring:
python main.py
🙌 Acknowledgements
- Developed with guidance from ChatGPT.
- Inspired by the need to maintain repository consistency across platforms.
🖋️ Author
Kevin Veen-Birkenbach
📜 License
This project is licensed under the GNU Affero General Public License v3.0. Please refer to the LICENSE file for details.
Happy mirroring! 🎉🔄
Languages
Python
100%