Skip to content

Commit 111ac77

Browse files
author
Evgeniy Guseletov
committed
Add manifold preview media type
1 parent 5bae94f commit 111ac77

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

lib/Github/Api/Repository/Assets.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
*/
1212
class Assets extends AbstractApi
1313
{
14+
/**
15+
* @deprecated Will be removed as soon as gh releases api gets stable
16+
*/
17+
public function configure()
18+
{
19+
$this->client->setHeaders(array(
20+
'Accept: application/vnd.github.manifold-preview'
21+
));
22+
}
23+
1424
/**
1525
* Get all release's assets in selected repository
1626
* GET /repos/:owner/:repo/releases/:id/assets

lib/Github/Api/Repository/Releases.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
*/
1313
class Releases extends AbstractApi
1414
{
15+
/**
16+
* @deprecated Will be removed as soon as gh releases api gets stable
17+
*/
18+
public function configure()
19+
{
20+
$this->client->setHeaders(array(
21+
'Accept: application/vnd.github.manifold-preview'
22+
));
23+
}
24+
1525
/**
1626
* List releases in selected repository
1727
*

0 commit comments

Comments
 (0)