mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Add a method to Repository, collaborator_permission that allows users with push access to repositories to query the permission level of collaborators. Fixes #722
11 lines
685 B
Plaintext
11 lines
685 B
Plaintext
https
|
|
GET
|
|
api.github.com
|
|
None
|
|
/repos/jacquev6/PyGithub/collaborators/lyloa/permission
|
|
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
|
None
|
|
403
|
|
[('status', '403 Forbidden'), ('x-ratelimit-remaining', '4980'), ('content-length', '37'), ('server', 'nginx/1.0.13'), ('connection', 'keep-alive'), ('x-ratelimit-limit', '5000'), ('etag', '"2743ecba84275ee9f0aa8e9edc5ed691"'), ('date', 'Mon, 27 Aug 2018 01:10:27 GMT'), ('content-type', 'application/json; charset=utf-8')]
|
|
{"documentation_url": "https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level", "message": "Must have push access to view collaborator permission."}
|