mirror of
https://github.com/zkitter/groups.git
synced 2026-01-09 13:08:01 -05:00
823313b75da87fc6e951838dcaa4630deab57b48
* add gql query to get list of voters * rename functions * refactor get spaces * get voters group * fix typo Committer instead of commiter * test * define serverless function
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 { getCommittersGroup } from './src/gh/get-commiters-group'
const group = await getCommittersGroup()
Languages
TypeScript
97.4%
Dockerfile
1.4%
Shell
1.2%