component/admin/vendor/joomla/github/src/Package/Issues.php 1 location
|
@@ 313-319 (lines=7) @@
|
310 |
|
* @since 1.4.0 |
311 |
|
* @throws \DomainException |
312 |
|
*/ |
313 |
|
public function lock($user, $repo, $issueId) |
314 |
|
{ |
315 |
|
// Build the request path. |
316 |
|
$path = "/repos/$user/$repo/issues/" . (int) $issueId . '/lock'; |
317 |
|
|
318 |
|
return $this->processResponse($this->client->put($this->fetchUrl($path), array()), 204); |
319 |
|
} |
320 |
|
|
321 |
|
/** |
322 |
|
* Unlock an issue. |
component/admin/vendor/joomla/github/src/Package/Orgs/Members.php 1 location
|
@@ 353-365 (lines=13) @@
|
350 |
|
* |
351 |
|
* @since 1.4.0 |
352 |
|
*/ |
353 |
|
public function editOrganizationMembership($org, $state) |
354 |
|
{ |
355 |
|
// The API only accepts $state == 'active' at present |
356 |
|
if ($state != 'active') |
357 |
|
{ |
358 |
|
throw new \InvalidArgumentException('The state must be "active".'); |
359 |
|
} |
360 |
|
|
361 |
|
// Build the request path. |
362 |
|
$path = '/user/memberships/orgs/' . $org; |
363 |
|
|
364 |
|
return $this->processResponse($this->client->patch($this->fetchUrl($path), array('state' => $state))); |
365 |
|
} |
366 |
|
} |
367 |
|
|
component/admin/vendor/joomla/github/src/Package/Users.php 1 location
|
@@ 115-126 (lines=12) @@
|
112 |
|
* @since 1.0 |
113 |
|
* @throws \DomainException |
114 |
|
*/ |
115 |
|
public function getList($since = 0) |
116 |
|
{ |
117 |
|
// Build the request path. |
118 |
|
$path = '/users'; |
119 |
|
|
120 |
|
$path .= ($since) ? '?since=' . $since : ''; |
121 |
|
|
122 |
|
// Send the request. |
123 |
|
return $this->processResponse( |
124 |
|
$this->client->get($this->fetchUrl($path)) |
125 |
|
); |
126 |
|
} |
127 |
|
} |
128 |
|
|