add script for finding repos containing package.json
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
f532b7c815
commit
50294c7e2f
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
import os
|
||||
from github import Github
|
||||
|
||||
g = Github(os.environ['GH_TOKEN'])
|
||||
|
||||
org = g.get_organization('status-im')
|
||||
|
||||
for repo in org.get_repos():
|
||||
contents = repo.get_dir_contents('/')
|
||||
# check if repo contains package.json
|
||||
found = [f for f in contents if f.path == 'package.json']
|
||||
if len(found) > 0:
|
||||
print(repo.name)
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
import pygithub3
|
||||
|
||||
gh = None
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
pygithub3
|
||||
PyGithub
|
||||
|
|
Loading…
Reference in New Issue