This PR adds the "permission" parameter to repo.add_collaborator, which was missing and is only valid for organisation repositories. (see here)
repo.add_collaborator
Fixes #954