Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions lib/Github/Api/Repository/Checks.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Github\Api\Repository;

use Github\Api\AbstractApi;
use Github\Api\AcceptHeaderTrait;
use Github\Exception\MissingArgumentException;

/**
Expand All @@ -13,8 +12,6 @@
*/
class Checks extends AbstractApi
{
use AcceptHeaderTrait;

/**
* @link https://developer.github.com/v3/checks/runs/#create-a-check-run
*
Expand All @@ -32,9 +29,6 @@ public function create($username, $repository, array $params = [])
throw new MissingArgumentException(['name', 'head_sha']);
}

// This api is in preview mode, so set the correct accept-header.
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';

return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs', $params);
}

Expand All @@ -50,9 +44,6 @@ public function create($username, $repository, array $params = [])
*/
public function update($username, $repository, $checkRunId, array $params = [])
{
// This api is in preview mode, so set the correct accept-header.
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';

return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId), $params);
}

Expand All @@ -68,9 +59,6 @@ public function update($username, $repository, $checkRunId, array $params = [])
*/
public function all($username, $repository, $ref, $params = [])
{
// This api is in preview mode, so set the correct accept-header.
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';

return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($ref).'/check-runs', $params);
}

Expand All @@ -85,9 +73,6 @@ public function all($username, $repository, $ref, $params = [])
*/
public function show($username, $repository, $checkRunId)
{
// This api is in preview mode, so set the correct accept-header.
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';

return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId));
}

Expand All @@ -102,9 +87,6 @@ public function show($username, $repository, $checkRunId)
*/
public function annotations($username, $repository, $checkRunId)
{
// This api is in preview mode, so set the correct accept-header.
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';

return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId).'/annotations');
}
}