You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a quick looks, seems that other attributes may be missing as well. For example, archived.
I have verified with my own repositories, public/private as well as the public repo used in this example.
Version is github3.py 0.9.6
Python 3.6.3
The text was updated successfully, but these errors were encountered:
Hi! I believe this is due to some refactoring of the objects we've been doing in the develop branch. When iterating an object like repositories the GitHub API returns a smaller partial set of data. We've turned these into "Short" objects and represent just the data that has been returned. Once you have a Short object, you should be able to call a refresh() method on it (repo = repo.refresh()) to turn it into the full object with all the details (of course that will incur another API hit).
Does that make sense? There's a bunch more details in #670 . Let me know if this resolves your issues!
Yes, I believe we need to update the docs for this stuff.
Prior to refactoring the code, you'd wind up with a Repository object that would have the missing attributes, but they'd all be set to some equivalent to None, since that data just isn't in the API return from iterating. Only it was less clear that the attribute data needed to be fetched, rather than just being empty.
The repository (generator) object returned via the iter_all_repos is missing some fields (created_at, archived, maybe others).
Outputs:
And if I access directly via:
Produces:
On a quick looks, seems that other attributes may be missing as well. For example,
archived
.I have verified with my own repositories, public/private as well as the public repo used in this example.
Version is github3.py 0.9.6
Python 3.6.3
The text was updated successfully, but these errors were encountered: