Skip to content

Commit 934ad37

Browse files
committed
Merge pull request #288 from lucasmichot/feature/current-user
Work on current user
2 parents 29cf308 + df85b57 commit 934ad37

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

lib/Github/Api/CurrentUser/DeployKeys.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function show($id)
4444
*
4545
* @param array $params
4646
*
47-
* @throws MissingArgumentException
47+
* @throws \Github\Exception\MissingArgumentException
4848
*
4949
* @return array
5050
*/
@@ -65,7 +65,7 @@ public function create(array $params)
6565
* @param string $id
6666
* @param array $params
6767
*
68-
* @throws MissingArgumentException
68+
* @throws \Github\Exception\MissingArgumentException
6969
*
7070
* @return array
7171
*/

lib/Github/Api/CurrentUser/Emails.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function all()
3030
*
3131
* @param string|array $emails
3232
*
33-
* @throws InvalidArgumentException
33+
* @throws \Github\Exception\InvalidArgumentException
3434
*
3535
* @return array
3636
*/
@@ -52,7 +52,7 @@ public function add($emails)
5252
*
5353
* @param string|array $emails
5454
*
55-
* @throws InvalidArgumentException
55+
* @throws \Github\Exception\InvalidArgumentException
5656
*
5757
* @return array
5858
*/

lib/Github/Api/CurrentUser/Memberships.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public function all()
2323
*
2424
* @link https://developer.github.com/v3/orgs/members/#get-your-organization-membership
2525
*
26+
* @param string $organization
27+
*
2628
* @return array
2729
*/
2830
public function organization($organization)
@@ -35,6 +37,8 @@ public function organization($organization)
3537
*
3638
* @link https://developer.github.com/v3/orgs/members/#edit-your-organization-membership
3739
*
40+
* @param string $organization
41+
*
3842
* @return array
3943
*/
4044
public function edit($organization)

lib/Github/Api/CurrentUser/Notifications.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public function allInRepository($username, $repository, array $params = array())
4141
}
4242

4343
/**
44+
* Mark all notifications as read.
45+
*
4446
* @link http://developer.github.com/v3/activity/notifications/#mark-as-read
4547
*
4648
* @param array $params
@@ -53,6 +55,8 @@ public function markAsReadAll(array $params = array())
5355
}
5456

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

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

8288
/**
89+
* Show a notification.
90+
*
8391
* @link http://developer.github.com/v3/activity/notifications/#view-a-single-thread
8492
*
8593
* @param string $id the notification number
@@ -92,6 +100,8 @@ public function show($id)
92100
}
93101

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

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

119131
/**
132+
* Delete a subscription.
133+
*
120134
* @link http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
121135
*
122136
* @param string $id the notification number

0 commit comments

Comments
 (0)