{"id":17192125,"url":"https://github.com/jdevera/hubtotea","last_synced_at":"2025-03-25T06:35:33.055Z","repository":{"id":251981227,"uuid":"839040011","full_name":"jdevera/hubtotea","owner":"jdevera","description":"Mirror Github repositories to your Gitea instance","archived":false,"fork":false,"pushed_at":"2024-08-09T00:08:04.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T06:11:14.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdevera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-06T20:55:17.000Z","updated_at":"2024-08-09T00:08:06.000Z","dependencies_parsed_at":"2025-01-30T06:10:31.466Z","dependency_job_id":null,"html_url":"https://github.com/jdevera/hubtotea","commit_stats":null,"previous_names":["jdevera/hubtotea"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdevera%2Fhubtotea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdevera%2Fhubtotea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdevera%2Fhubtotea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdevera%2Fhubtotea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdevera","download_url":"https://codeload.github.com/jdevera/hubtotea/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245414530,"owners_count":20611363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T01:28:19.543Z","updated_at":"2025-03-25T06:35:33.033Z","avatar_url":"https://github.com/jdevera.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HubToTea 🐙2️⃣🍵: Sync Github repos to Gitea\n\nThis program will create Gitea mirrors of the github repositories you specify.\n\nBest run with docker.\n\n## How to run\n\n```bash\ndocker run \\\n    -d \\\n    --restart=unless-stopped \\\n    -e GITEA_URL=\"http://gitea:3000\" \\\n    -e GITEA_TOKEN=\"your gitea token\" \\\n    -e GITHUB_USER=\"your github user\" \\\n    jdevera/hubtotea:latest\n```\n\n## What can be mirrored\n\n- Public Repos: All public repos of the given user, **excluding forks**\n- Private Repos: All private repos of the given user\n- Forks: All forks of the given user (they are always public)\n\nEach of these groups can be enabled or disabled with the environment variables.\n\n## Parameters\n\n| Parameter                       | Description                                                                      | Mandatory | Default |\n|---------------------------------|----------------------------------------------------------------------------------|-----------|---------|\n| `GITEA_URL`                     | The URL of the Gitea instance that will be mirroring the repositories            | Yes       |         |\n| `GITEA_TOKEN`                   | The token to use when authenticating with the Gitea API                          | Yes       |         |\n| `GITHUB_USER`                   | The github username to mirror repositories from                                  | Yes       |         |\n| `GITHUB_TOKEN`                  | A Github token is required only when working with private repositories           | No        |         |\n| `HUBTOTEA_MIRROR_PUBLIC_REPOS`  | Set to false or 0 to not mirror public repositories. This does not affect forks. | No        | `true`  |\n| `HUBTOTEA_MIRROR_PRIVATE_REPOS` | Set to true or 1 to mirror private repositories                                  | No        | `false` |\n| `HUBTOTEA_MIRROR_FORKS`         | Set to true or 1 to mirror forks                                                 | No        | `false` |\n| `HUBTOTEA_DRY_RUN`              | Set to true or 1 to skip the write operations and instead just log them          | No        | `false` |\n| `HUBTOTEA_NUM_WORKERS`          | The number of concurrent workers to use when mirroring repositories              | No        | `5`     |\n| `HUBTOTEA_SYNC_INTERVAL`        | The interval in seconds to wait between syncs. Set to 0 to run only once         | No        | `3600`  |\n\n\n## Custom certificates\n\nIf your Gitea instance is served with a self-signed certificate, or you have a custom CA, `hubtotea` will refuse to connect.\n\nYou can provide a custom CA certificate by mounting it in the container. Make sure any additional certificates you want to be trusted are available in the `/usr/local/share/ca-certificates` directory.\n\nWith docker:\n```bash\n-v /dir/with/certificates:/usr/local/share/ca-certificates:ro\n```\n\nWith docker compose:\n\n```yaml\nvolumes:\n  - /dir/with/certificates:/usr/local/share/ca-certificates:ro\n```\n\nThe container will automatically trust any certificates in that directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdevera%2Fhubtotea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdevera%2Fhubtotea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdevera%2Fhubtotea/lists"}