Skip to content

Commit 1dadd9c

Browse files
committed
Updating a user public key is not allowed
1 parent 437b1bb commit 1dadd9c

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

lib/Github/Api/CurrentUser/DeployKeys.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,27 +57,6 @@ public function create(array $params)
5757
return $this->post('/user/keys', $params);
5858
}
5959

60-
/**
61-
* Updates deploy key for the authenticated user.
62-
*
63-
* @link http://developer.github.com/v3/repos/keys/
64-
*
65-
* @param string $id
66-
* @param array $params
67-
*
68-
* @throws \Github\Exception\MissingArgumentException
69-
*
70-
* @return array
71-
*/
72-
public function update($id, array $params)
73-
{
74-
if (!isset($params['title'], $params['key'])) {
75-
throw new MissingArgumentException(array('title', 'key'));
76-
}
77-
78-
return $this->patch('/user/keys/'.rawurlencode($id), $params);
79-
}
80-
8160
/**
8261
* Removes deploy key for the authenticated user.
8362
*

0 commit comments

Comments
 (0)