-
-
Notifications
You must be signed in to change notification settings - Fork 598
Add Integrations::configure #581
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
Conversation
lib/Github/Api/Integrations.php
Outdated
public function configure($bodyType = null) | ||
{ | ||
if ('raw' === $bodyType) { | ||
$this->acceptHeaderValue = sprintf('application/vnd.github.%s.raw', $this->client->getApiVersion()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just set the required header and leave the additional checks away. See: https://github.com/KnpLabs/php-github-api/blob/master/lib/Github/Api/Project/Cards.php#L20
lib/Github/Api/Integrations.php
Outdated
use AcceptHeaderTrait; | ||
|
||
/** | ||
* Configure the accept header for Early Access to the projects api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
integrations api instead of projects
lib/Github/Api/Integrations.php
Outdated
/** | ||
* Configure the accept header for Early Access to the projects api | ||
* | ||
* @see https://developer.github.com/v3/repos/projects/#projects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor comments
@acrobat Copy-paste errors... fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Fix #580