Skip to content

Commit

Permalink
7.0.1 merge outstanding PRs
Browse files Browse the repository at this point in the history
 - Add `getLatestRelease()` to RepositoriesService
 - Add `listCurrentUserFollowing()` function to `UsersService`
  • Loading branch information
robbecker-wf committed Jul 31, 2020
1 parent dba284b commit 3c88457
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 7.0.1
- Add `getLatestRelease()` to RepositoriesService
- Add `listCurrentUserFollowing()` function to `UsersService`

## 7.0.0
- Removed deprecated CloneUrls property on Repository class

Expand Down
7 changes: 7 additions & 0 deletions lib/src/common/users_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ class UsersService extends Service {
'GET', '/user/followers', (i) => User.fromJson(i),
statusCode: 200);

/// List current user following
///
/// API docs: https://developer.github.com/v3/users/followers/#list-users-followed-by-the-authenticated-user
Stream<User> listCurrentUserFollowing() => PaginationHelper(github).objects(
'GET', '/user/following', (i) => User.fromJson(i),
statusCode: 200);

/// Lists the verified public keys for a [userLogin]. If no [userLogin] is specified,
/// the public keys for the authenticated user are fetched.
///
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: github
version: 7.0.0
version: 7.0.1
description: A high-level GitHub API Client Library that uses Github's v3 API
homepage: https://github.com/SpinlockLabs/github.dart

Expand Down

0 comments on commit 3c88457

Please sign in to comment.