isTeamRepository method
Checks if a team manages the specified repository.
API docs: https://developer.github.com/v3/orgs/teams/#get-team-repo
Implementation
Future<bool> isTeamRepository(
int teamId,
RepositorySlug slug,
) {
return github
.request(
'GET',
'/teams/$teamId/repos/${slug.fullName}',
)
.then((response) {
return response.statusCode == StatusCodes.NO_CONTENT;
});
}