forked from supabase/supabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (29 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
REPO_DIR=$(shell pwd)
help:
@echo "\SCRIPTS\n"
@echo "make github.contributors # pull a list of all contributors"
@echo "make github.issues # pull a list of all issue creators"
@echo "make github.repos # pull a list of our repos"
@echo "make github.traction # get a history of stargazers for our individual repos"
github.users:
curl -sS https://api.github.com/repos/supabase/monorepo/contributors \
| jq -r 'map_values({username: .login, avatar_url: .avatar_url}) \
| unique \
| sort_by(.username)' \
> $(REPO_DIR)/web/src/data/contributors/contributors.json
github.issues:
curl -sS https://api.github.com/repos/supabase/monorepo/issues \
| jq -r 'map_values({username: .user.login, avatar_url: .user.avatar_url}) \
| unique \
| sort_by(.username)' \
> $(REPO_DIR)/web/src/data/contributors/issues.json
.PHONY: github.repos
github.repos: \
github.repos.monorepo \
github.repos.realtime \
github.repos.schemas
github.repos.%:
curl -sS https://api.github.com/repos/supabase/$* \
> $(REPO_DIR)/web/src/data/repos/$*.json
github.traction: \
cd web && npm run traction