mxve / teahub

Mirror GitHub Repositories to Gitea

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TeaHub

Mirror GitHub repositories to Gitea

Inspired by Gickup

TeaHub makes use of Gitea's mirroring feature and uses the GitHub and Gitea API to automate the process of mirroring GitHub repositories to Gitea.

Featues

  • Mirror GitHub repositories to Gitea (duh)
  • Prefix repo name with owner name if not owned by user
    • Mirroring your own repo would result in <yourgiteauser>/<reponame>
    • Mirroring this repo would result in <yourgiteauser>/mxve_teahub
  • Option to include starred repos
  • Option to include private repos
  • Option to keep all repos private
  • Configurable (Gitea) mirror interval

Usage

Config

[github]
token = "" # GitHub personal access token
user = "" # GitHub username
include_starred = true # Include starred repositories
include_private = true # Include private repositories

[gitea]
token = "" # Gitea access token
user = "" # Gitea username
url = "" # Gitea URL (without trailing slash)
keep_private = true # Set all repositories to private, otherwise use the same visibility as on GitHub
mirror_interval = "2h" # Gitea mirror interval

About

Mirror GitHub Repositories to Gitea


Languages

Language:Rust 100.0%