-
Notifications
You must be signed in to change notification settings - Fork 114
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
Option to mirror multiple repos/users on GitHub mirror #71
Comments
are you sure? It seems to work just fine, see https://github.com/hanwen/zoekt-config/blob/master/mirror.json |
Huh, I'd better read the docs more carefully, totally missed it. Yes, works fine when passing it in the expected format. Out of curiosity, I see that by setting If this is the case, do we need the concept of an org and as a result its logic, i.e. getOrgRepos? |
I don't know, tbh. The GitHub API has separate endpoints/fields for User and Organization, but it seems they are mostly the same in practice. If you can figure out if we need to care about the difference , then that would be great. |
Cool, I'll take a look once I find some time. |
Currently it's not possible to mirror multiple organisations or users using the GitHub mirror (correct me if I'm wrong!).
Briefly, the changes needed for this are the following:
I believe it's better to give flexibility to users so that they can mirror both users and orgs at the same time, i.e. this should be an if instead of an else.
@hanwen Let me know if this sounds good to you and I can raise a PR.
The text was updated successfully, but these errors were encountered: