0

I am trying to clone/access all repos with keywords (Ex: ILOVECS) of an organization. There are around 4k repos in total in the organization. Is there a way to only clone repos with keywords that I want?

My ultimate goal is to collect all changes(Ex: how many lines deleted/added) of all commits from all repos by git -log, and store them in a csv file. Is there a better way to access these repos rather than clone them all?

torek
  • 448,244
  • 59
  • 642
  • 775
LeoB
  • 9
  • 1
  • This is a question about GitHub, not about Git. (How to clone a repository is a question about Git, but this is fundamentally about iterating over all repositories in an organization, and Git doesn't have "organizations" in the first place.) I updated your tag. – torek Jul 13 '22 at 10:47

1 Answers1

0

You can use the GitHub GraphQL API v4 for:

But once you have that list, most of the stats I know of (involving every commit) are better addressed with a local clone.

Even mergestat/mergestat would clone the repository in a local temp folder before executing its SQL-like query.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250