Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add repos synchronization tool #3

Closed
wants to merge 1 commit into from

Conversation

Yikun
Copy link
Member

@Yikun Yikun commented Jan 14, 2020

We need a tool to do the synchronization from github to gitee, and then use this tool to do the auto-sync periodically.

This patch add a script will fetch all repos from github, and then push them (include commits, branch, tags) to gitee mirror repo.

Close: #2

@Yikun
Copy link
Member Author

Yikun commented Jan 14, 2020

image

The tools demo as above.

@TommyLike
Copy link

missing shell header.

We need a tool to do the synchronization from github to gitee, and then use this tool to do the auto-sync periodically.

This patch add a script will fetch all repos from github, and then push them (include commits, branch, tags) to gitee mirror repo.
@Yikun
Copy link
Member Author

Yikun commented Jan 14, 2020

missing shell header.

@TommyLike Good catch, and fixed.

@ZhengZhenyu
Copy link
Contributor

Overall looks good, but got one thing in my head, this seems can be with very low effeciency if we got a lot of repos, probably we could think of some improvement in the future.

@Yikun
Copy link
Member Author

Yikun commented Jan 17, 2020

Thanks for the review.

After the consideration of the DRY (Don't Repeat Yourself) principle, this synchronization tool has been replaced by the github action -- Gitee Mirror Action [1].

And now this Gitee Mirror Action v0.01 has been released, so I submited the PR #4 to use it in Kunpeng org. If you have the same requirement on the sync between gitee and github, you could see it as the reference.

Hope you guys have a good exp on trying it.
cc: @TommyLike @leonwanghui @edisonxiang

[1] https://github.com/marketplace/actions/mirror-the-github-organization-repos-to-gitee

@Yikun Yikun closed this Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add repos synchronization tool
3 participants