Skip to content

Commit

Permalink
Merge pull request KnpLabs#288 from lucasmichot/feature/current-user
Browse files Browse the repository at this point in the history
Work on current user
  • Loading branch information
cursedcoder committed Jul 3, 2015
2 parents 29cf308 + df85b57 commit 934ad37
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Github/Api/CurrentUser/DeployKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function show($id)
*
* @param array $params
*
* @throws MissingArgumentException
* @throws \Github\Exception\MissingArgumentException
*
* @return array
*/
Expand All @@ -65,7 +65,7 @@ public function create(array $params)
* @param string $id
* @param array $params
*
* @throws MissingArgumentException
* @throws \Github\Exception\MissingArgumentException
*
* @return array
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/Github/Api/CurrentUser/Emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function all()
*
* @param string|array $emails
*
* @throws InvalidArgumentException
* @throws \Github\Exception\InvalidArgumentException
*
* @return array
*/
Expand All @@ -52,7 +52,7 @@ public function add($emails)
*
* @param string|array $emails
*
* @throws InvalidArgumentException
* @throws \Github\Exception\InvalidArgumentException
*
* @return array
*/
Expand Down
4 changes: 4 additions & 0 deletions lib/Github/Api/CurrentUser/Memberships.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function all()
*
* @link https://developer.github.com/v3/orgs/members/#get-your-organization-membership
*
* @param string $organization
*
* @return array
*/
public function organization($organization)
Expand All @@ -35,6 +37,8 @@ public function organization($organization)
*
* @link https://developer.github.com/v3/orgs/members/#edit-your-organization-membership
*
* @param string $organization
*
* @return array
*/
public function edit($organization)
Expand Down
14 changes: 14 additions & 0 deletions lib/Github/Api/CurrentUser/Notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function allInRepository($username, $repository, array $params = array())
}

/**
* Mark all notifications as read.
*
* @link http://developer.github.com/v3/activity/notifications/#mark-as-read
*
* @param array $params
Expand All @@ -53,6 +55,8 @@ public function markAsReadAll(array $params = array())
}

/**
* Mark all notifications for a repository as read.
*
* @link http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository
*
* @param string $username the user who owns the repo
Expand All @@ -67,6 +71,8 @@ public function markAsReadInRepository($username, $repository, array $params = a
}

/**
* Mark a notification as read.
*
* @link http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read
*
* @param string $id the notification number
Expand All @@ -80,6 +86,8 @@ public function markAsRead($id, array $params)
}

/**
* Show a notification.
*
* @link http://developer.github.com/v3/activity/notifications/#view-a-single-thread
*
* @param string $id the notification number
Expand All @@ -92,6 +100,8 @@ public function show($id)
}

/**
* Show a subscription.
*
* @link http://developer.github.com/v3/activity/notifications/#get-a-thread-subscription
*
* @param string $id the notification number
Expand All @@ -104,6 +114,8 @@ public function showSubscription($id)
}

/**
* Create a subscription.
*
* @link http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription
*
* @param string $id the notification number
Expand All @@ -117,6 +129,8 @@ public function createSubscription($id, array $params)
}

/**
* Delete a subscription.
*
* @link http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
*
* @param string $id the notification number
Expand Down

0 comments on commit 934ad37

Please sign in to comment.