Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Support internal repos on GHE better without having to individually add orgs #61924

@pjlast

Description

@pjlast

There are 3 ways to add internal repos to an instance:

  • Add the repo by name
  • Use "repositoryQuery": ["public"]
  • Use "repositoryQuery": ["org:org-name is:internal"]

However, on instances with many, fluctuating repos and fluctuating orgs, none of these are feasible.

"public" uses GitHub's public repos endpoint, which does not return visibility or topics as part of the JSON result, making it impossible to tell which repos are actually internal and yielding inconsistent search results for repos with topics.

And having to add a new repo or a new org to code host connections every time is extremely tedious.

What we should be able to do instead is add a new "internal" option to the repositoryQuery special cases that iterates over the users orgs, and lists all the repos for each org using visibility=internal

Metadata

Metadata

Assignees

Labels

team/sourceTickets under the purview of Source - the one Source to graph it all

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions