【发布时间】:2019-07-25 09:47:54
【问题描述】:
我在使用 github api 将 Repos 添加到 Github Enterprise 中的团队时遇到问题
根据 GitHub API:我应该调用:
PUT /teams/:team_id/repos/:owner/:repo
我正在使用我的访问令牌进行以下调用
curl -H "Authorization: token personal_access_token" https://api.github.com/teams/test-team/repos/mohit/test_data
我收到了json数据:
{
"message": "Bad credentials",
"documentation_url": "https://developer.github.com/v3"
}
这里是文档的链接:https://developer.github.com/v3/teams/#add-or-update-team-repository
我无法将 Repos 添加到团队。 如何在 Github Enterprise 中继续将 Repos 添加到组织中的团队?
【问题讨论】: