mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-14 11:52:58 +09:00
changes
This commit is contained in:
34
vendor/knplabs/github-api/lib/Github/Api/Issue/Timeline.php
vendored
Normal file
34
vendor/knplabs/github-api/lib/Github/Api/Issue/Timeline.php
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Github\Api\Issue;
|
||||
|
||||
use Github\Api\AbstractApi;
|
||||
use Github\Api\AcceptHeaderTrait;
|
||||
|
||||
class Timeline extends AbstractApi
|
||||
{
|
||||
use AcceptHeaderTrait;
|
||||
|
||||
public function configure()
|
||||
{
|
||||
$this->acceptHeaderValue = 'application/vnd.github.mockingbird-preview';
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all events for a specific issue.
|
||||
*
|
||||
* @link https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue
|
||||
*
|
||||
* @param string $username
|
||||
* @param string $repository
|
||||
* @param int $issue
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function all($username, $repository, $issue)
|
||||
{
|
||||
return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/issues/'.rawurlencode($issue).'/timeline');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user