1

I am trying to iterate over all repositories in a private organization. Here is some example code that does not work on my machine (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"))

When I run this, I get: AttributeError: iter_repos The traceback points to line 5 where I call iter_repos.

1 Answer 1

3

I believe you want

   org.repositories(type="all")

iter_repos is from pre-1.0 github3.py

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.