Skip to content

Commit d311068

Browse files
author
Pawel Luczkiewicz
committed
Add accept header for the checks API
1 parent ac08595 commit d311068

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

lib/Github/Api/Repository/Checks/CheckRuns.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@
33
namespace Github\Api\Repository\Checks;
44

55
use Github\Api\AbstractApi;
6+
use Github\Api\AcceptHeaderTrait;
67

78
/**
89
* @link https://docs.github.com/en/free-pro-team@latest/rest/reference/checks
910
*/
1011
class CheckRuns extends AbstractApi
1112
{
13+
use AcceptHeaderTrait;
14+
15+
public function configure()
16+
{
17+
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';
18+
19+
return $this;
20+
}
21+
1222
/**
1323
* @link https://docs.github.com/en/free-pro-team@latest/rest/reference/checks#create-a-check-run
1424
*

lib/Github/Api/Repository/Checks/CheckSuites.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@
33
namespace Github\Api\Repository\Checks;
44

55
use Github\Api\AbstractApi;
6+
use Github\Api\AcceptHeaderTrait;
67

78
/**
89
* @link https://docs.github.com/en/free-pro-team@latest/rest/reference/checks
910
*/
1011
class CheckSuites extends AbstractApi
1112
{
13+
use AcceptHeaderTrait;
14+
15+
public function configure()
16+
{
17+
$this->acceptHeaderValue = 'application/vnd.github.antiope-preview+json';
18+
19+
return $this;
20+
}
21+
1222
/**
1323
* @link https://docs.github.com/en/free-pro-team@latest/rest/reference/checks#create-a-check-suite
1424
*

0 commit comments

Comments
 (0)