New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add method to set permission level of team collaborator on Organization repository #605
Comments
There does appear to be an undocumented |
Sounds like this issue could be resolved by documentation improvement then. For API consistency with REST, updating |
Thanks, using Why is this not documented? :( // edit, well, maybe because the documentation is old? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This seems to be available in the latest documentation. |
There is currently no method in PyGithub to set the permission level of a team collaborator on a repository.
At a minimum, the method
github.Team.Team.add_to_repos
should take an optional parameter permission=str to set the permission level of a collaborator. The current default appears to be push.Based on the GitHub API, reusing the same method to update repo permissions would be correct.
Relevent API reference: https://developer.github.com/v3/orgs/teams/#add-or-update-team-repository
The text was updated successfully, but these errors were encountered: