I have an organization which owns several (15) private repositories. I assign it to org via get_organization('name_of_organization'). Indeed,
>>> type(org)
github.Organization.Organization
However, when I check the organization of a (private) repository owned by that organization, I get a different object with different properties.
For example,
>>> assert org.get_repos()[0].organization.total_private_repos == org.total_private_repos
fails.
In addition,
>>> org.get_repos()[0].organization.plan
is None, where
>>> org.plan.name
u'silver'
It may worth mentioning that
assert org.get_repos()[0].organization.id == org.id
does not fail.
I have an organization which owns several (15) private repositories. I assign it to
orgviaget_organization('name_of_organization'). Indeed,However, when I check the organization of a (private) repository owned by that organization, I get a different object with different properties.
For example,
fails.
In addition,
is
None, whereIt may worth mentioning that
does not fail.