gitea/src/66f866a7-f3a0-40ac-ac94-168.../code.power

25 lines
628 B
Plaintext

/**
* Return all users that have write access and can be assigned to issues.
*
* @param string $owner The owner name.
* @param string $repo The repository name.
*
* @return array|null
* @since 3.2.0
**/
public function get(string $owner, string $repo): ?array
{
// Build the request path.
$path = "/repos/{$owner}/{$repo}/assignees";
// Set the required variables to the URI.
$uri = $this->uri->get($path);
$uri->setVar('owner', $owner);
$uri->setVar('repo', $repo);
// Send the get request.
return $this->response->get(
$this->http->get($uri)
);
}