-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# TeaHub | ||
#### Mirror GitHub repositories to Gitea | ||
###### Inspired by [Gickup](https://github.com/cooperspencer/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 | ||
- Setup config file (see [config.example.json](config.example.json)) | ||
- Run teahub | ||
- ??? | ||
- Profit | ||
|
||
## Config | ||
```toml | ||
[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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters