Skip to content

Regression in 2.7.0 to get permissions of a Team #3355

@SESA444562

Description

@SESA444562

Since the version 2.7.0, there is a bug to the get_repo_permission function.

When I try to get the permissions from a team to a repository by using the name and not the repository object I received None.

repo_permissions = team.get_repo_permission("orga/repo")

The issue is with this fix #3263 at this line https://github.com/PyGithub/PyGithub/blob/main/github/Team.py#L319

Now the '/' is encoded but it should not for the fullname which has organization + repository name.

I checked the tests as well and it seems only the interface with the repository object is tested (https://github.com/PyGithub/PyGithub/blob/main/tests/Team.py#L169).

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions