addCollaborator method
Implementation
Future<bool> addCollaborator(RepositorySlug slug, String user) async {
ArgumentError.checkNotNull(slug);
ArgumentError.checkNotNull(user);
return github
.request(
'PUT',
'/repos/${slug.fullName}/collaborators/$user',
statusCode: StatusCodes.NO_CONTENT,
)
.then((response) => response.statusCode == StatusCodes.NO_CONTENT);
}