{"id":20945159,"url":"https://github.com/tbxark/gitea-mirror-reauth","last_synced_at":"2026-04-25T00:40:25.777Z","repository":{"id":239175806,"uuid":"798770560","full_name":"TBXark/gitea-mirror-reauth","owner":"TBXark","description":"Quickly modify the authorization information of a Gitea mirror repository.","archived":false,"fork":false,"pushed_at":"2024-05-11T05:56:33.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T21:43:20.255Z","etag":null,"topics":["git","gitea","gitea-mirror","golang"],"latest_commit_sha":null,"homepage":"","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/TBXark.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-05-10T12:42:01.000Z","updated_at":"2024-12-30T22:29:40.000Z","dependencies_parsed_at":"2024-11-18T23:48:51.114Z","dependency_job_id":"e0b7cf21-350e-47ec-bdd6-28772ce196e9","html_url":"https://github.com/TBXark/gitea-mirror-reauth","commit_stats":null,"previous_names":["tbxark/gitea-mirror-reauth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2Fgitea-mirror-reauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2Fgitea-mirror-reauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2Fgitea-mirror-reauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2Fgitea-mirror-reauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TBXark","download_url":"https://codeload.github.com/TBXark/gitea-mirror-reauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243335566,"owners_count":20274936,"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":["git","gitea","gitea-mirror","golang"],"created_at":"2024-11-18T23:46:59.234Z","updated_at":"2025-12-30T00:22:24.158Z","avatar_url":"https://github.com/TBXark.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitea-mirror-reauth\n\nAs Gitea does not provide a simple way to modify the authorization information of mirrored repositories, I wrote this tool to solve this problem.\n\n## Installation\n\n```bash\ngo install github.com/TBXark/gitea-mirror-reauth@latest\n```\n\n## Usage\n\n```\ngitea-mirror-reauth\nexpected 'preview', 'auto-replace' or 'token-replace' subcommands\nUsage:\n  preview       preview all gitea repositories\n  auto-replace  auto replace gitea repositories token by config\n  token-replace replace gitea repositories token manually\n\n```\n\n### preview\nCheck all the repositories in gitea-repositories and output the repository information\n```\nUsage of preview:\n  -gitea-dir string\n        gitea repositories dir (default \"/home/git/data/gitea-repositories\")\n  -help\n        help\n```\n\n### auto-replace\nReplace the token in the repository according to the configuration file\n```\nUsage of auto-replace:\n  -config string\n        config file path\n  -confirm\n        confirm\n  -gitea-dir string\n        gitea repositories dir (default \"/home/git/data/gitea-repositories\")\n  -help\n        help\n```\nConfiguration file is json format, key is regular expression, value is new token.\n```json\n{\n  \"regex\": \"NEW_TOKEN\",\n  \"tbxark/private_repo_name\": \"NEW_PRIVATE_SCOPE_TOKEN\",\n  \"tbxark/.*\": \"NEW_PUBLIC_SCOPE_TOKEN\"\n}\n```\n\n### token-replace\nFind all the tokens in the repository and replace them\n```\nUsage of token-replace:\n  -gitea-dir string\n        gitea repositories dir (default \"/home/git/data/gitea-repositories\")\n  -help\n        help\n```\n\n## License\n\n**gitea-mirror-reauth** is released under the MIT license. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbxark%2Fgitea-mirror-reauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbxark%2Fgitea-mirror-reauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbxark%2Fgitea-mirror-reauth/lists"}