mirror of
https://github.com/zkitter/groups.git
synced 2026-01-09 13:08:01 -05:00
3db62559c4552137db6d56748710c90319906b26
Zkitter Groups
Get list of GH users who contributed to the GitHub org of a given group of DAOs.
Under the hood, it:
- Fetches a list of
maxOrgs(default 100) spaces from snapshot.org based on theirminFollowers(default 10_000). - For each space, it fetches the list of their repositories on GitHub.
- For each of the org repository, it fetches the list of contributors between a
sinceanduntiltimestamps (default between now and now - 1 month). - Returns the list of unique contributors, removing potential bots (e.g dependencies, github action bots etc...)
API
| METHOD | PATH | DESCRIPTION | RESPONSE |
|---|---|---|---|
| GET | /whitelist?format=short|long |
Get list of whitelisted organizations in short or long format |
Array<{ followers: number, followers7d?: number, snapshotId: string, snapshotName: string, ghName: string, repos: string[] }> |
| GET | /whitelist/refresh |
Update list of whitelisted orgs and their repos. Return updated whitelist | Array<{ followers: number, followers7d?: number, snapshotId: string, snapshotName: string, ghName: string, repos: string[] }> |
| GET | /user/:username?format=short|long |
Get user username in short (only groups info) or long (with repos) format |
{ belongsToGhContributorsGroup: boolean, belongsToDaoVotersGroups: boolean } |
| GET | /user/:username/refresh |
Update list of repos the user username contributed to and return updated user |
{ ghName: string, repos: string[]} |
Languages
TypeScript
97.4%
Dockerfile
1.4%
Shell
1.2%