Skip to content

Commit 92870e2

Browse files
committed
add configure to branch protection for preview access
1 parent 574a927 commit 92870e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Github/Api/Repository/Protection.php

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

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

78
/**
89
* @link https://developer.github.com/v3/repos/branches/
910
* @author Brandon Bloodgood <[email protected]>
1011
*/
1112
class Protection extends AbstractApi
1213
{
14+
use AcceptHeaderTrait;
15+
16+
public function configure()
17+
{
18+
$this->acceptHeaderValue = 'application/vnd.github.loki-preview+json';
19+
20+
return $this;
21+
}
22+
1323
/**
1424
* Retrieves configured protection for the provided branch
1525
*

0 commit comments

Comments
 (0)