fetch all contributors
This commit is contained in:
18
Makefile
18
Makefile
@@ -2,17 +2,25 @@ REPO_DIR=$(shell pwd)
|
|||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "\SCRIPTS\n"
|
@echo "\SCRIPTS\n"
|
||||||
@echo "make github.users # pull a list of all contributors"
|
@echo "make github.contributors # pull a list of all contributors"
|
||||||
@echo "make github.issues # pull a list of all issue creators"
|
@echo "make github.issues # pull a list of all issue creators"
|
||||||
@echo "make github.repos # pull a list of our repos"
|
@echo "make github.repos # pull a list of our repos"
|
||||||
@echo "make github.traction # get a history of stargazers for our individual repos"
|
@echo "make github.traction # get a history of stargazers for our individual repos"
|
||||||
|
|
||||||
github.users:
|
github.contributors.%:
|
||||||
curl -sS https://api.github.com/repos/supabase/supabase/contributors \
|
curl -sS https://api.github.com/repos/supabase/$*/contributors \
|
||||||
| jq -r 'map_values({username: .login, avatar_url: .avatar_url}) \
|
| jq -r 'map_values({ username: .login }) \
|
||||||
| unique \
|
| unique \
|
||||||
| sort_by(.username)' \
|
| sort_by(.username)' \
|
||||||
> $(REPO_DIR)/web/src/data/contributors/contributors.json
|
> $(REPO_DIR)/web/src/data/contributors/$*.json
|
||||||
|
|
||||||
|
.PHONY: github.rcontributorsepos
|
||||||
|
github.contributors: \
|
||||||
|
github.contributors.supabase \
|
||||||
|
github.contributors.supabase-js \
|
||||||
|
github.contributors.supabase-py \
|
||||||
|
github.contributors.supabase-flutter \
|
||||||
|
github.contributors.supabase-dart
|
||||||
|
|
||||||
github.issues:
|
github.issues:
|
||||||
curl -sS https://api.github.com/repos/supabase/supabase/issues \
|
curl -sS https://api.github.com/repos/supabase/supabase/issues \
|
||||||
|
|||||||
Reference in New Issue
Block a user