How to retrieve the list of git repositories which were updated recently (say from last 1 day or 2 days or a week or a month) within my organization. I would prefer to do this search based on the organization_id
Asked
Active
Viewed 369 times
1 Answers
0
You would need to:
list repositories in your organization
https://api.github.com/orgs/:org/repos
for each repo, get the latest commit date of, for instance, the
master
branchhttps://api.github.com/repos/:owner/:repo/branches/master

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
Once you have `GET /...` and once you have just a URL. That might be confusing. – dan1st Jan 16 '20 at 05:08
-
How do you still filter the above list based on the recently updated repositories – Rpj Jan 25 '20 at 06:04
-
1@Rpj Using https://developer.github.com/v3/repos/branches/#get-branch on each repo, you have the date of the last committer: you can sort on that date. – VonC Jan 25 '20 at 06:07
-
I was thinking if there was a simpler way to just list the repositories which changed in the last week across any branch not just the master – Rpj Jan 25 '20 at 18:01