Skip to content

Commit b02245b

Browse files
committed
Merge pull request #146 from fkooman/master
add support for retrieving current_user subscriptions
2 parents 8475a2a + f09548d commit b02245b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/Github/Api/CurrentUser.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,12 @@ public function starred($page = 1)
151151
'page' => $page
152152
));
153153
}
154+
155+
/**
156+
* @link https://developer.github.com/v3/activity/watching/#list-repositories-being-watched
157+
*/
158+
public function subscriptions()
159+
{
160+
return $this->get('user/subscriptions');
161+
}
154162
}

0 commit comments

Comments
 (0)