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

Set up GitHub mirror #366

Closed
rmarquis opened this issue Nov 23, 2023 · 6 comments
Closed

Set up GitHub mirror #366

rmarquis opened this issue Nov 23, 2023 · 6 comments

Comments

@rmarquis
Copy link

rmarquis commented Nov 23, 2023

This is a follow-up of #360.


FYI, I did some test on my side to provide a mirror of the codeberg repo on GitHub (more of a "main" branch copy than a complete mirror, as I couldn't copy the on-going PRs from codeberg to GitHub). I've used a separate repository to host the necessary github action worflow.

  • mirror: [removed] (main branch only)
  • github action: [removed] (only requires a Personal Access Token to push the mirrored data. It updates the mirror every 12h but the time interval can be adjusted)

Ideally, you would host such a repo under the ratfactor username (instead of my own), so you'd keep entire control over that mirror. If you integrate the GH workflow file directly in the codeberg repo, you'd also don't need a separate repo as I needed (I couldn't host a file that is not on the primary source in the mirrored repo itself).

Also, I understand the codeberg repo has now diverged from this one, and this situation likely never be "fixed". You still probably want to set this repository as read only, to avoid even more confusion and more people opening tickets and PRs here instead of the new repo on codeberg.

@chrboesch
Copy link
Collaborator

Now we have a github mirror: https://github.com/ziglings-org/exercises

@rmarquis
Copy link
Author

rmarquis commented Dec 9, 2023

Nice. Is it updated automatically? What is the sync delay with the main repo? I couldn't find the trigger that does the job.

@chrboesch
Copy link
Collaborator

chrboesch commented Dec 9, 2023

It's checked daily and updated after each merge.

I couldn't find the trigger that does the job.

Where did you look?

@rmarquis
Copy link
Author

I checked both GitHub and Codeberg repo, on any branch. Is the sync done automatically?

@chrboesch
Copy link
Collaborator

Is the sync done automatically?

Yes, in Codeberg there are the 'Mirror Settings' under 'Repository Settings' where you can configure that.

@rmarquis
Copy link
Author

Perfect! Many thanks.

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

No branches or pull requests

2 participants