Updates to vendors etc

This commit is contained in:
Chris Hunt
2025-07-11 15:57:48 +01:00
parent d972cbcd0a
commit 8fb6438254
8043 changed files with 248005 additions and 189479 deletions

View File

@@ -70,7 +70,7 @@ class Workflows extends AbstractApi
*
* @return array|string empty
*/
public function dispatches(string $username, string $repository, $workflow, string $ref, array $inputs = null)
public function dispatches(string $username, string $repository, $workflow, string $ref, ?array $inputs = null)
{
if (is_string($workflow)) {
$workflow = rawurlencode($workflow);

View File

@@ -83,4 +83,14 @@ class CheckRuns extends AbstractApi
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($ref).'/check-runs', $params);
}
/**
* @link https://docs.github.com/en/rest/reference/checks#rerequest-a-check-run
*
* @return array
*/
public function rerequest(string $username, string $repository, int $checkRunId)
{
return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.$checkRunId.'/rerequest');
}
}

View File

@@ -30,4 +30,9 @@ class Commits extends AbstractApi
{
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($sha));
}
public function pulls($username, $repository, $sha, array $params = [])
{
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($sha).'/pulls', $params);
}
}

View File

@@ -98,7 +98,7 @@ class Contents extends AbstractApi
*
* @return array information about the new file
*/
public function create($username, $repository, $path, $content, $message, $branch = null, array $committer = null)
public function create($username, $repository, $path, $content, $message, $branch = null, ?array $committer = null)
{
$url = '/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/contents/'.rawurlencode($path);
@@ -174,14 +174,14 @@ class Contents extends AbstractApi
*
* @return array information about the updated file
*/
public function update($username, $repository, $path, $content, $message, $sha, $branch = null, array $committer = null)
public function update($username, $repository, $path, $content, $message, $sha, $branch = null, ?array $committer = null)
{
$url = '/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/contents/'.rawurlencode($path);
$parameters = [
'content' => base64_encode($content),
'message' => $message,
'sha' => $sha,
'sha' => $sha,
];
if (null !== $branch) {
@@ -215,13 +215,13 @@ class Contents extends AbstractApi
*
* @return array information about the updated file
*/
public function rm($username, $repository, $path, $message, $sha, $branch = null, array $committer = null)
public function rm($username, $repository, $path, $message, $sha, $branch = null, ?array $committer = null)
{
$url = '/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/contents/'.rawurlencode($path);
$parameters = [
'message' => $message,
'sha' => $sha,
'sha' => $sha,
];
if (null !== $branch) {