mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-22 14:47:47 +09:00
Updates to vendors etc
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user