github3.py v1.3.0 AttributeError: iter_repos
github3.py v1.3.0 AttributeError: iter_repos
我正在尝试遍历私有组织中的所有存储库。这是一些在我的机器上不起作用的示例代码(Windows 10,Python 3.6.5):
import github3
session = github3.login(token = "A token that works with other github3.py functions and also has all permissions for testing")
org = session.organization("private organization name")
repos = list(org.iter_repos(type = "all"))
当我 运行 这样做时,我得到:
属性错误:iter_repos
回溯指向我调用 iter_repos.
的第 5 行
我相信你想要
org.repositories(type="all")
iter_repos
来自 pre-1.0 github3.py
我正在尝试遍历私有组织中的所有存储库。这是一些在我的机器上不起作用的示例代码(Windows 10,Python 3.6.5):
import github3
session = github3.login(token = "A token that works with other github3.py functions and also has all permissions for testing")
org = session.organization("private organization name")
repos = list(org.iter_repos(type = "all"))
当我 运行 这样做时,我得到: 属性错误:iter_repos 回溯指向我调用 iter_repos.
的第 5 行我相信你想要
org.repositories(type="all")
iter_repos
来自 pre-1.0 github3.py