Skip to content

Commit 3c88457

Browse files
committed
7.0.1 merge outstanding PRs
- Add `getLatestRelease()` to RepositoriesService - Add `listCurrentUserFollowing()` function to `UsersService`
1 parent dba284b commit 3c88457

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 7.0.1
2+
- Add `getLatestRelease()` to RepositoriesService
3+
- Add `listCurrentUserFollowing()` function to `UsersService`
4+
15
## 7.0.0
26
- Removed deprecated CloneUrls property on Repository class
37

lib/src/common/users_service.dart

+7
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ class UsersService extends Service {
150150
'GET', '/user/followers', (i) => User.fromJson(i),
151151
statusCode: 200);
152152

153+
/// List current user following
154+
///
155+
/// API docs: https://developer.github.com/v3/users/followers/#list-users-followed-by-the-authenticated-user
156+
Stream<User> listCurrentUserFollowing() => PaginationHelper(github).objects(
157+
'GET', '/user/following', (i) => User.fromJson(i),
158+
statusCode: 200);
159+
153160
/// Lists the verified public keys for a [userLogin]. If no [userLogin] is specified,
154161
/// the public keys for the authenticated user are fetched.
155162
///

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: github
2-
version: 7.0.0
2+
version: 7.0.1
33
description: A high-level GitHub API Client Library that uses Github's v3 API
44
homepage: https://github.com/SpinlockLabs/github.dart
55

0 commit comments

Comments
 (0)