Reducing the GitHub repositories shown in the Clone dialog

14 views
Skip to first unread message

Phil Beauvoir

unread,
Mar 22, 2024, 9:32:34 AM3/22/24
to SmartGit
Hi,

when I select Clone and select GitHub as the target, a list of GitHub repositories is shown in the dialog. However, not only are my own and my organizations' repositories shown in the list but it also seems to show every repository that I made a comment on (issue, PR, whatever). These are not typically repos that I want to clone.

What are the criteria for what is shown in the list and is there a way to filter it?

Regards,

Phil

syntevo Support

unread,
Mar 25, 2024, 6:53:09 AM3/25/24
to smar...@googlegroups.com
This is the overall query which SmartGit sends:

https://pastebin.com/M3viKt2r

There are Preferences, Low-Level Properties for the three main blocks "github.userQuery.include*".

In your case, I guess it's the repositories-affiliations configuration which is causing too many repositories to be included. Currently this can't be customized. Please try some variations with GitHub's GraphQL Explorer and let us know what works best for you:

https://docs.github.com/en/graphql/overview/explorer

--
Best regards,
Marc Strapetz
syntevo GmbH
https://www.syntevo.com
> --
> You received this message because you are subscribed to the Google Groups
> "SmartGit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> smartgit+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/smartgit/a1a498b2-f790-4d1b-83ae-ae350e8b0d0dn%40googlegroups.com.
>

Phil Beauvoir

unread,
Mar 25, 2024, 7:29:12 AM3/25/24
to SmartGit
Thanks for that Marc,

I think it is part of the "topRepositories" setting but I couldn't further refine this one. I guess the ones I'd be interested in are the ones where I've contributed code (PR, commit) rather than those where I've simply added a comment in the issue tracker.

Regards,

Phil

syntevo Support

unread,
Mar 25, 2024, 8:36:20 AM3/25/24
to smar...@googlegroups.com
> I think it is part of the "topRepositories" setting but I couldn't further
> refine this one. I guess the ones I'd be interested in are the ones where
> I've contributed code (PR, commit) rather than those where I've simply
> added a comment in the issue tracker.

It seems that this can't be further refined (there is `affiliations` for `repositories` but not for `topRepositories`):

https://docs.github.com/en/graphql/reference/objects#user

So your only option is to skip all "top repositories" using Low-Level Property "github.userQuery.includeTopRepository".

--
Best regards,
Marc Strapetz
syntevo GmbH
https://www.syntevo.com


> https://groups.google.com/d/msgid/smartgit/924d205d-35e0-4916-988f-b2d0e982c4b3n%40googlegroups.com.
>

Phil Beauvoir

unread,
Mar 25, 2024, 8:38:12 AM3/25/24
to SmartGit
I'll manage, as this is a bit of "luxury problem". :-) Thanks for your help, Marc.

Phil
Reply all
Reply to author
Forward
0 new messages