Skip to content

Commit 0ca004a

Browse files
committed
Remove antiope preview header as checks api is now stable
1 parent 4bc9fb9 commit 0ca004a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/Github/Api/Repository/Checks.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
*/
1414
class Checks extends AbstractApi
1515
{
16-
use AcceptHeaderTrait;
17-
1816
/**
1917
* @link https://developer.github.com/v3/checks/runs/#create-a-check-run
2018
*
@@ -32,9 +30,6 @@ public function create($username, $repository, array $params = [])
3230
throw new MissingArgumentException(['name', 'head_sha']);
3331
}
3432

35-
// This api is in preview mode, so set the correct accept-header.
36-
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';
37-
3833
return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs', $params);
3934
}
4035

@@ -50,9 +45,6 @@ public function create($username, $repository, array $params = [])
5045
*/
5146
public function update($username, $repository, $checkRunId, array $params = [])
5247
{
53-
// This api is in preview mode, so set the correct accept-header.
54-
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';
55-
5648
return $this->patch('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId), $params);
5749
}
5850

@@ -68,9 +60,6 @@ public function update($username, $repository, $checkRunId, array $params = [])
6860
*/
6961
public function all($username, $repository, $ref, $params = [])
7062
{
71-
// This api is in preview mode, so set the correct accept-header.
72-
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';
73-
7463
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($ref).'/check-runs', $params);
7564
}
7665

@@ -85,9 +74,6 @@ public function all($username, $repository, $ref, $params = [])
8574
*/
8675
public function show($username, $repository, $checkRunId)
8776
{
88-
// This api is in preview mode, so set the correct accept-header.
89-
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';
90-
9177
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId));
9278
}
9379

@@ -102,9 +88,6 @@ public function show($username, $repository, $checkRunId)
10288
*/
10389
public function annotations($username, $repository, $checkRunId)
10490
{
105-
// This api is in preview mode, so set the correct accept-header.
106-
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';
107-
10891
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/check-runs/'.rawurlencode($checkRunId).'/annotations');
10992
}
11093
}

0 commit comments

Comments
 (0)