update 2023-04-30 01:34:12
This commit is contained in:
parent
208627be2d
commit
5337df13c9
|
@ -250,7 +250,6 @@ namespace VDM\Joomla\Gitea #DarkCyan {
|
|||
+ heatmap() : ?array
|
||||
+ keys() : ?array
|
||||
+ repos() : ?array
|
||||
+ repos() : ?array
|
||||
+ watched() : ?array
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ class User #Gold {
|
|||
+ heatmap(string $username) : ?array
|
||||
+ keys(string $userName, ?string $fingerprint = null, ...) : ?array
|
||||
+ repos(string $userName, int $page = 1, ...) : ?array
|
||||
+ repos(string $userName, int $page = 1, ...) : ?array
|
||||
+ watched(string $userName, int $page = 1, ...) : ?array
|
||||
}
|
||||
|
||||
|
@ -120,15 +119,6 @@ note left of User::repos
|
|||
since: 3.2.0
|
||||
return: ?array
|
||||
|
||||
arguments:
|
||||
string $userName
|
||||
int $page = 1
|
||||
int $limit = 10
|
||||
List the repos that the given user has starred.
|
||||
|
||||
since: 3.2.0
|
||||
return: ?array
|
||||
|
||||
arguments:
|
||||
string $userName
|
||||
int $page = 1
|
||||
|
|
|
@ -301,36 +301,6 @@ class User extends Api
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List the repos that the given user has starred.
|
||||
*
|
||||
* @param string $userName The username of the user to retrieve starred repos for.
|
||||
* @param int $page The page number of results to return (1-based).
|
||||
* @param int $limit The page size of results.
|
||||
*
|
||||
* @return array|null
|
||||
* @since 3.2.0
|
||||
**/
|
||||
public function repos(
|
||||
string $userName,
|
||||
int $page = 1,
|
||||
int $limit = 10
|
||||
): ?array
|
||||
{
|
||||
// Build the request path.
|
||||
$path = "/users/{$userName}/starred";
|
||||
|
||||
// Build the URI with query parameters.
|
||||
$uri = $this->uri->get($path);
|
||||
$uri->setVar('page', $page);
|
||||
$uri->setVar('limit', $limit);
|
||||
|
||||
// Send the get request.
|
||||
return $this->response->get(
|
||||
$this->http->get($uri)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List the repositories watched by a user.
|
||||
*
|
||||
|
|
|
@ -277,36 +277,6 @@
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List the repos that the given user has starred.
|
||||
*
|
||||
* @param string $userName The username of the user to retrieve starred repos for.
|
||||
* @param int $page The page number of results to return (1-based).
|
||||
* @param int $limit The page size of results.
|
||||
*
|
||||
* @return array|null
|
||||
* @since 3.2.0
|
||||
**/
|
||||
public function repos(
|
||||
string $userName,
|
||||
int $page = 1,
|
||||
int $limit = 10
|
||||
): ?array
|
||||
{
|
||||
// Build the request path.
|
||||
$path = "/users/{$userName}/starred";
|
||||
|
||||
// Build the URI with query parameters.
|
||||
$uri = $this->uri->get($path);
|
||||
$uri->setVar('page', $page);
|
||||
$uri->setVar('limit', $limit);
|
||||
|
||||
// Send the get request.
|
||||
return $this->response->get(
|
||||
$this->http->get($uri)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List the repositories watched by a user.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue