mirror of
https://github.com/zkitter/groups.git
synced 2026-01-09 13:08:01 -05:00
264805370add4671b95e70e5c674a7d0157dfe3e
* rename parameters * get gh group * Update README * Update README
GH 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...)
Usage
You need to have a GH Personal Access Token (scopes: public_repo, read:user) defined as environment variables.
Scripts
- fetch spaces:
nps 'fetch.spaces -m <min followers amount> -s <group size> - fetch group of gh users:
nps fetch.ghgroup
Node
import { getGhGroup } from './src'
const group = await getGhGroup()
Languages
TypeScript
97.4%
Dockerfile
1.4%
Shell
1.2%