From adecb253cec3e629903aba7a2e13be7c749e82dc Mon Sep 17 00:00:00 2001 From: Bob Eagan Date: Fri, 14 Apr 2017 16:13:59 -0700 Subject: [PATCH] add configure to branch protection for preview access --- lib/Github/Api/Repository/Protection.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Github/Api/Repository/Protection.php b/lib/Github/Api/Repository/Protection.php index 6976870da13..6e12410c2ce 100644 --- a/lib/Github/Api/Repository/Protection.php +++ b/lib/Github/Api/Repository/Protection.php @@ -3,6 +3,7 @@ namespace Github\Api\Repository; use Github\Api\AbstractApi; +use Github\Api\AcceptHeaderTrait; /** * @link https://developer.github.com/v3/repos/branches/ @@ -10,6 +11,15 @@ */ class Protection extends AbstractApi { + use AcceptHeaderTrait; + + public function configure() + { + $this->acceptHeaderValue = 'application/vnd.github.loki-preview+json'; + + return $this; + } + /** * Retrieves configured protection for the provided branch *