From 02c197cc5454826cadcaad08f0a2af52b22aa43e Mon Sep 17 00:00:00 2001 From: Bob Eagan Date: Tue, 9 May 2017 09:36:49 -0700 Subject: [PATCH] Remove need to use configure() on PR review and review request --- doc/pull_request/review_request.md | 7 ------- lib/Github/Api/PullRequest/Review.php | 2 -- lib/Github/Api/PullRequest/ReviewRequest.php | 2 -- 3 files changed, 11 deletions(-) diff --git a/doc/pull_request/review_request.md b/doc/pull_request/review_request.md index 5b27c21a6b0..bed33a426c2 100644 --- a/doc/pull_request/review_request.md +++ b/doc/pull_request/review_request.md @@ -1,13 +1,6 @@ ## Pull Requests / Review Requests API [Back to the "Pull Requests API"](../pull_requests.md) | [Back to the navigation](../README.md) -The Pull Request Review API is currently available for developers to preview. -To access the API during the preview period, you must provide a custom media type in the Accept header: - -```php -$client->api('pull_request')->reviewRequests()->configure(); -``` - ### List all review requests ```php diff --git a/lib/Github/Api/PullRequest/Review.php b/lib/Github/Api/PullRequest/Review.php index fdbf8d1e5bc..40c8db83127 100644 --- a/lib/Github/Api/PullRequest/Review.php +++ b/lib/Github/Api/PullRequest/Review.php @@ -19,8 +19,6 @@ class Review extends AbstractApi public function configure() { - $this->acceptHeaderValue = 'application/vnd.github.black-cat-preview+json'; - return $this; } diff --git a/lib/Github/Api/PullRequest/ReviewRequest.php b/lib/Github/Api/PullRequest/ReviewRequest.php index a8b454b93d3..8321fd27cac 100644 --- a/lib/Github/Api/PullRequest/ReviewRequest.php +++ b/lib/Github/Api/PullRequest/ReviewRequest.php @@ -14,8 +14,6 @@ class ReviewRequest extends AbstractApi public function configure() { - $this->acceptHeaderValue = 'application/vnd.github.black-cat-preview+json'; - return $this; }