Live data from Hacker News

Ask HN: How to handle 500+ repositories in GitHub?

news.ycombinator.com

21–30 of 34 posts

Re: Ask HN: How to handle 500+ repositories in GitHub?

#21
430+ repos here, corporate setting, its not great but we use some custom scripts (validate users, groups, which repos are allowed to be public), strict documentation, and quarterly auditing. We have a lot of strict requirements around branch protections and the API for branch protections leaves a lot to be desired.

We've found that setting up new repos in a strictly documented manner has been the best way to approach it, we also have some github actions that run periodically to run some sanity checks across repos.

We're a terraform shop but we had countless issues with the terraform-github-provider but, maybe its improved the last year or so.

Also, Github has no "protections" around tagging, this really hurts us as we want to move to tags and releases for versioning but don't have a way to require multiple approvals before cutting an artifact that can be promoted so we have to wrap some customization and processes around it.

Re: Ask HN: How to handle 500+ repositories in GitHub?

#22
post #18

There are github organizations. I checked this year and it allowed to create one for free. https://docs.github.com/en/organizations/collaborating-with-...

There’s no hierarchy though, so that’s the problem for me. If I have 400 repos and divide them across 4 orgs with 100 each, users have to be added to all four groups, search across all four, etc.

Gitlab allows groups under the org so you can have hierarchies common in org structures.

I wish GitHub would do this with suborgs. So I can have a “Foo” org for my company and then divisions or big projects can have suborgs. So all users are members of Foo and then also members of their particular groups.

This is sort of possible with Teams and permissions but is hard UX as there’s no way to just see all the repos in a suborg.

Re: Ask HN: How to handle 500+ repositories in GitHub?

#23
My org has about 500 repos split across 3 orgs. There’s a “main” org, an OSS org, and then splinters for people who are willing to pay for and manage their own.

For the main org, we have templates that projects typically follow where they include info in the readme for what group and individuals manage and we require that they add a tag for the specific center and encourage tags for projects.

So it’s sort of possible to search for a tag within the org to see all the projects but it’s janky and confusing.

Some groups create “housekeeping repos” that is just a repo with docs that link out and describe all their projects. They use repo instead of wiki as GitHub wikis are kind of a pain to manage (must have specific permissions and can’t just fork and send a PR). So that group uses the housekeeping repo as the link they give out to new team members, etc.

For the OSS org projects, we also have a portal repo that builds a github.io portal site that shows cards for each repo and allows searching and sorting. The OSS org doesn’t use the tagging scheme because the public doesn’t really know or care about our internal org names. We have about 175 projects in our OSS org.

Note, we also run GitLab community edition internally and actually have subgroups and stuff. But since GitLab requires internal network access GitHub use is growing since GitHub is in the cloud and doesn’t require VPN. The GitLab license costs are much higher than GitHub and not really compatible with our dev style. We have lots of non-devs and the ratio is probably 3:1 of non-dev:dev and GitLab makes us license everyone the same so we can’t pay $1000/year so a PM can update readmes and project cards.

Re: Ask HN: How to handle 500+ repositories in GitHub?

#24

I'm having trouble with 30 or so repos. I shudder to think what 500 or more is like. Search every time? kind of not good. Maybe there is a place for an "index" repo that holds a set of github pages that acts as an index into all the repos and groups them via that page instead of just using search.

One of our devs built a portal that does this that I think is easier to use than the normal GitHub search, http://cdcgov.github.io

I think most teams just know their repos and go to a small set of projects so don’t spend a lot of time browsing the org trying to find stuff.

Re: Ask HN: How to handle 500+ repositories in GitHub?

#25
For those who are in organizations that have near 500 repos, why do many? Is it shear size of the company, or is it organizing individual internal libraries into different repos (seems like good practice), or something else? I've only ever worked for small companies where we have max 5 real repos, and I work at a company with a mono repo right now.

Large scale systems are very interesting to me, but I have to say, I don't mind the mono repo.

Re: Ask HN: How to handle 500+ repositories in GitHub?

#26
post #6

Unfortunately we ended up giving in and using multiple GitHub organizations. There doesn't seem to be a better answer like repository tagging or labeling. It's not ideal, and has definitely resulted in lost issues, duplicated effort and the like. However - it's the best answer we have.

I’ve thought about this, but it makes it hard to “inner source” as each project just sticks to its org and there’s less cross-pollination. It’s also an admin hassle to move users across orgs.

Re: Ask HN: How to handle 500+ repositories in GitHub?

#27

We are currently moving from Bitbucket to GitHub (hurrah!), and since we were "assigned" a single organization in GitHub by our corporate parent, we are also looking at importing a lot of repositories into a single organization. And the inability to further organize these repositories has been a big disappointment for an otherwise good experience with GitHub. Pretty much what this thread is about! We end up telling o…

RE: Topics, this is a feature I just found. What is the UX like when trying to find repos by topic?

Re: Ask HN: How to handle 500+ repositories in GitHub?

#28

We are currently moving from Bitbucket to GitHub (hurrah!), and since we were "assigned" a single organization in GitHub by our corporate parent, we are also looking at importing a lot of repositories into a single organization. And the inability to further organize these repositories has been a big disappointment for an otherwise good experience with GitHub. Pretty much what this thread is about! We end up telling o…

RE: Topics, this is a feature I just found. What is the UX like when trying to find repos by topic?

They show them under the repository names, and you can search by typing topic:name, but I wouldn't say it's great.

Re: Ask HN: How to handle 500+ repositories in GitHub?

#30

In the process of moving from GitLab to GitHub. We just use naming conventions for this: all repositories are called Company.Group.Product, where Group roughly corresponds to the old GL group.

Just out of curiosity, why the move? I'll admit I'm something of a GitLab fanboy, but honestly it's because they keep winning on just about everything in CE vs even the paid alternatives (in my mind).

Fair question -- I wasn't involved in the decision, but my understanding is that GitHub is relatively cheap if you're a C# shop (i.e. you're already paying MS for VS). We had to have some moving pain anyway as teams in different departments were using a variety of different git hosting solutions and there was a wish to consolidate.
Post reply on HN