r1oga 264805370a feat: get group of gh users (#8)
* rename parameters

* get gh group

* Update README

* Update README
2023-01-16 14:10:20 +01:00
2023-01-08 16:57:38 +01:00
2023-01-16 14:10:20 +01:00
2023-01-16 14:10:20 +01:00
2023-01-16 14:10:20 +01:00
2023-01-08 16:57:38 +01:00
2023-01-08 16:57:38 +01:00
2023-01-08 16:57:38 +01:00
2023-01-08 16:57:38 +01:00
2023-01-08 16:57:38 +01:00
2023-01-08 16:57:38 +01:00
2023-01-08 16:57:38 +01:00
2023-01-10 17:35:39 +01:00
2023-01-10 17:35:39 +01:00
2023-01-16 14:10:20 +01:00
2023-01-08 16:57:38 +01:00

GH Groups

Get list of GH users who contributed to the GitHub org of a given group of DAOs.
Under the hood, it:

  1. Fetches a list of maxOrgs (default 100) spaces from snapshot.org based on their minFollowers (default 10_000).
  2. For each space, it fetches the list of their repositories on GitHub.
  3. For each of the org repository, it fetches the list of contributors between a since and untiltimestamps (default between now and now - 1 month).
  4. 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()
Description
No description provided
Readme MIT 787 KiB
Languages
TypeScript 97.4%
Dockerfile 1.4%
Shell 1.2%