如何在 github3py 上指定团队权限
How do I specify team permissions on github3py
我正在尝试使用 github3py 编写一个向团队添加存储库的简单脚本。
add_repo(repo, team)
方法无论如何都无法指定我希望我的团队拥有什么样的权限,根据:http://github3.readthedocs.io/en/develop/orgs.html
vs 在 github 文档中,它说您可以将权限作为参数传递:
https://developer.github.com/v3/orgs/teams/#add-or-update-team-repository
所以这只是没有在 github3.py 中实现还是我感到困惑?
我希望能够添加具有读写权限的团队。这默认为读取。
好吧,看起来还有另一个同名方法,但对象 Team
add_repository(repository, permission=u'')
Add repository to this team.
Parameters:
repository (str) – (required), form: ‘user/repo’
permission (str) – (optional), (‘pull’, ‘push’, ‘admin’)
这样你就可以指定权限了。
我正在尝试使用 github3py 编写一个向团队添加存储库的简单脚本。
add_repo(repo, team)
方法无论如何都无法指定我希望我的团队拥有什么样的权限,根据:http://github3.readthedocs.io/en/develop/orgs.html
vs 在 github 文档中,它说您可以将权限作为参数传递: https://developer.github.com/v3/orgs/teams/#add-or-update-team-repository
所以这只是没有在 github3.py 中实现还是我感到困惑?
我希望能够添加具有读写权限的团队。这默认为读取。
好吧,看起来还有另一个同名方法,但对象 Team
add_repository(repository, permission=u'')
Add repository to this team.
Parameters:
repository (str) – (required), form: ‘user/repo’
permission (str) – (optional), (‘pull’, ‘push’, ‘admin’)
这样你就可以指定权限了。