github API - using curl PUT to add a repo to a team

馋奶兔 提交于 2019-12-03 02:26:11
Rob D

You also need to make sure that the :repo is the repo["name"] field, NOT the repo["id"] field.

For anyone coming across this again... it looks like :org is now the full name and not the ID

"The documents on github prescribe this:"

Add team repo

In order to add a repo to a team, the authenticated user must be an owner of the org that the team is associated with.

PUT /teams/:id/repos/:user/:repo

Does not work. What does work is this:

PUT /teams/:id/repos/:org/:repo

Replacing ":user" with ":org" (the name of the "organization" that the team belongs to.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!