mirror of
https://github.com/status-im/infra-utils.git
synced 2025-02-23 09:28:08 +00:00
23 lines
437 B
Python
Executable File
23 lines
437 B
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
from github import Github
|
|
|
|
gh = Github(os.environ['GH_TOKEN'])
|
|
|
|
org = gh.get_organization('status-im')
|
|
|
|
#print("Scopes:", gh.oauth_scopes)
|
|
|
|
for repo in org.get_repos():
|
|
skip = any([
|
|
repo.fork,
|
|
repo.archived,
|
|
not repo.private,
|
|
repo.name.endswith('-pass'),
|
|
])
|
|
if skip:
|
|
continue
|
|
|
|
print(repo)
|
|
repo.add_to_collaborators('status-im-auto', permission='pull')
|