如何使用 pygithub 按团队 ID 列出子团队

how to list child teams by team id using pygithub

如何使用 pygithub 通过父团队 ID 获取子团队

我找不到任何 API 对应于以下请求的对象

GET /teams/:team_id/teams

暂不支持,见https://github.com/PyGithub/PyGithub/issues/1054#issuecomment-468543429

Nested Teams is still in beta, we don't current use the custom media type of hellcat-preview anywhere, so our API responses won't include them.

来自 github 文档 https://developer.github.com/v3/teams/#list-child-teams :

At this time, the hellcat-preview media type is required to use this endpoint.

GET /teams/:team_id/teams