我正在使用github3 python 库,并试图找到我们组织的用户贡献的所有公共存储库(以奖励对开源的支持!)。
我有组织的用户列表,但现在呢?
我可以使用公共事件迭代器来查找存储库吗?
#!/usr/bin/env python
import argparse
import github3
def get_organization(github, name):
for organization in github.iter_orgs():
if organization.login == name:
return organization
def main(args):
github = github3.login(args.github_username, password=args.github_password)
organization = get_organization(github, args.organization)
# Get a list of all current organization contributors
orgMembers = [member.login for member in organization.iter_members()]
# now what?