Fix RepositoriesService.listContributors
MODIFY
CHANGELOG.md
CHANGELOG.md
+## v4.0.2
+
+- Fix return type of `RepositoriesService.listContributors`.
+
## v4.0.1
- Fix cast errors in event and issue queries.

MODIFY
lib/src/common/repos_service.dart
lib/src/common/repos_service.dart
@@ -152,10 +152,10 @@ class RepositoriesService extends Service {
/// Lists the contributors of the specified repository.
///
/// API docs: https://developer.github.com/v3/repos/#list-contributors
- Stream<Tag> listContributors(RepositorySlug slug, {bool anon: false}) {
+ Stream<User> listContributors(RepositorySlug slug, {bool anon: false}) {
return new PaginationHelper(_github).objects(
'GET', '/repos/${slug.fullName}/contributors', User.fromJson,
- params: {"anon": anon.toString()}) as Stream<Tag>;
+ params: {"anon": anon.toString()});
}
/// Lists the teams of the specified repository.

MODIFY
pubspec.yaml
pubspec.yaml
name: github
-version: 4.0.1
+version: 4.0.2-dev
author: Kenneth Endfinger <kaendfinger@gmail.com>
description: GitHub API Client Library
homepage: https://github.com/DirectMyFile/github.dart

Fix RepositoriesService.listContributors