addTeamRepository method
Adds a repository to be managed by the specified team.
API docs: https://developer.github.com/v3/orgs/teams/#add-team-repo
Implementation
Future<bool> addTeamRepository(int teamId, RepositorySlug slug) {
return github
.request('PUT', '/teams/$teamId/repos/${slug.fullName}')
.then((response) {
return response.statusCode == 204;
});
}