├── .github └── workflows │ └── sync-to-gitee.yml ├── .gitignore ├── LICENSE ├── cli.py ├── doc ├── images │ ├── desc.png │ ├── github-token-contents.png │ ├── github-token-owner.png │ ├── github-token-pull-request.png │ ├── github-token-repo.png │ ├── init.png │ └── trident.png ├── pr.md └── publish.md ├── lib ├── api │ ├── abstract_client.py │ ├── gitea.py │ ├── gitee.py │ ├── github.py │ └── index.py ├── handler │ ├── helper.py │ ├── init.py │ ├── remote.py │ └── sync.py ├── http.py ├── logger.py ├── model │ ├── config.py │ ├── opts.py │ ├── repo.py │ └── sync.py ├── util.py ├── util_git.py └── version.py ├── pyproject.toml ├── readme.md └── test ├── .gitignore ├── copy_script.py ├── main_test.py ├── pr_test.py └── sync.yaml /.github/workflows/sync-to-gitee.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/.github/workflows/sync-to-gitee.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | dist 3 | venv 4 | sync 5 | poetry.lock 6 | __pycache__ 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/LICENSE -------------------------------------------------------------------------------- /cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/cli.py -------------------------------------------------------------------------------- /doc/images/desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/doc/images/desc.png -------------------------------------------------------------------------------- /doc/images/github-token-contents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/doc/images/github-token-contents.png -------------------------------------------------------------------------------- /doc/images/github-token-owner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/doc/images/github-token-owner.png -------------------------------------------------------------------------------- /doc/images/github-token-pull-request.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/doc/images/github-token-pull-request.png -------------------------------------------------------------------------------- /doc/images/github-token-repo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/doc/images/github-token-repo.png -------------------------------------------------------------------------------- /doc/images/init.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/doc/images/init.png -------------------------------------------------------------------------------- /doc/images/trident.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/doc/images/trident.png -------------------------------------------------------------------------------- /doc/pr.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/doc/pr.md -------------------------------------------------------------------------------- /doc/publish.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/doc/publish.md -------------------------------------------------------------------------------- /lib/api/abstract_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/api/abstract_client.py -------------------------------------------------------------------------------- /lib/api/gitea.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/api/gitea.py -------------------------------------------------------------------------------- /lib/api/gitee.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/api/gitee.py -------------------------------------------------------------------------------- /lib/api/github.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/api/github.py -------------------------------------------------------------------------------- /lib/api/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/api/index.py -------------------------------------------------------------------------------- /lib/handler/helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/handler/helper.py -------------------------------------------------------------------------------- /lib/handler/init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/handler/init.py -------------------------------------------------------------------------------- /lib/handler/remote.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/handler/remote.py -------------------------------------------------------------------------------- /lib/handler/sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/handler/sync.py -------------------------------------------------------------------------------- /lib/http.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/http.py -------------------------------------------------------------------------------- /lib/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/logger.py -------------------------------------------------------------------------------- /lib/model/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/model/config.py -------------------------------------------------------------------------------- /lib/model/opts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/model/opts.py -------------------------------------------------------------------------------- /lib/model/repo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/model/repo.py -------------------------------------------------------------------------------- /lib/model/sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/model/sync.py -------------------------------------------------------------------------------- /lib/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/util.py -------------------------------------------------------------------------------- /lib/util_git.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/util_git.py -------------------------------------------------------------------------------- /lib/version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/lib/version.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/pyproject.toml -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/readme.md -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/test/.gitignore -------------------------------------------------------------------------------- /test/copy_script.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/test/copy_script.py -------------------------------------------------------------------------------- /test/main_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/test/main_test.py -------------------------------------------------------------------------------- /test/pr_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/test/pr_test.py -------------------------------------------------------------------------------- /test/sync.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/handsfree-work/trident-sync/HEAD/test/sync.yaml --------------------------------------------------------------------------------