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

Feature request: Mirror GitHub repos of specific type #75

Open
nikos912000 opened this issue Jan 11, 2019 · 3 comments
Open

Feature request: Mirror GitHub repos of specific type #75

nikos912000 opened this issue Jan 11, 2019 · 3 comments

Comments

@nikos912000
Copy link
Contributor

It'd be nice to be able to mirror GitHub repos of specific type(s).

Note that currently Zoekt lists and mirrors orgs by calling getUserRepos. Check the comments on #71.

If we want to implement this feature, we'll need to introduce GithubOrg in addition to GithubUser since the type request parameter differs between these entities.

See here and here.

@hanwen
Copy link
Contributor

hanwen commented Jan 15, 2019

in #71 we decided that users and orgs are the same for the purposes of mirroring, so I don't understand what this issue is about. What do you want to do that you cannot do today?

@nikos912000
Copy link
Contributor Author

Can someone list/mirror repos of specific type (e.g. owner for a user) in the current implementation of the GitHub mirror?
I've added this option to BitBucket Server mirror here, but this hasn't been introduced yet in the GitHub mirror here.

In #71 we indeed decided there's no difference in the current implementation. This is because we haven't yet introduced filtering by type in the repos. If we do so (as part of this feature request) we need to treat orgs and users differently.

Let me know if that makes sense or if I'm missing anything.

@ezkl
Copy link
Contributor

ezkl commented Feb 28, 2019

@nikos912000 @hanwen On a somewhat related note, I submitted a patch earlier today that adds GithubOrg support to the mirror config. I found the change necessary to retrieve private repositories from a github organization using a properly scoped access token.

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

3 participants