我想在我的github回购中添加一个作为协作者的组
文档页缺少此部分。我可以使用此请求成功地添加一个人作为协作者。
curl \
-X PUT \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/octocat/hello-world/collaborators/USERNAME \
-d '{"permission":"permission"}'但是当我想要添加一个组(在同一个组织下创建)时-我不能
有可能这样做吗?
发布于 2022-02-10 13:10:51
答案是从另一端出发:
在团队中加入回购。以下是API引用
https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions
https://stackoverflow.com/questions/71017963
复制相似问题