Skip to content

Remove need to use configure() on PR review and review request #584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions doc/pull_request/review_request.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/Github/Api/PullRequest/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class Review extends AbstractApi

public function configure()
{
$this->acceptHeaderValue = 'application/vnd.github.black-cat-preview+json';

return $this;
}

Expand Down
2 changes: 0 additions & 2 deletions lib/Github/Api/PullRequest/ReviewRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class ReviewRequest extends AbstractApi

public function configure()
{
$this->acceptHeaderValue = 'application/vnd.github.black-cat-preview+json';

return $this;
}

Expand Down