Class Github\Api\Repository\Releases

InheritanceGithub\Api\Repository\Releases » Github\Api\AbstractApi
ImplementsGithub\Api\ApiInterface

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
all() List releases in selected repository. Github\Api\Repository\Releases
assets() Github\Api\Repository\Releases
configure() Github\Api\AbstractApi
create() Create new release in selected repository. Github\Api\Repository\Releases
edit() Edit release in selected repository. Github\Api\Repository\Releases
getPerPage() Github\Api\AbstractApi
latest() Get the latest release. Github\Api\Repository\Releases
remove() Delete a release in selected repository (Not thoroughly tested!). Github\Api\Repository\Releases
setPerPage() Github\Api\AbstractApi
show() Get a release in selected repository. Github\Api\Repository\Releases
tag() List releases for a tag. Github\Api\Repository\Releases

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
createJsonBody() Create a JSON encoded version of an array of parameters. Github\Api\AbstractApi
delete() Send a DELETE request with JSON-encoded parameters. Github\Api\AbstractApi
get() Send a GET request with query parameters. Github\Api\AbstractApi
head() Send a HEAD request with query parameters. Github\Api\AbstractApi
patch() Send a PATCH request with JSON-encoded parameters. Github\Api\AbstractApi
post() Send a POST request with JSON-encoded parameters. Github\Api\AbstractApi
postRaw() Send a POST request with raw data. Github\Api\AbstractApi
put() Send a PUT request with JSON-encoded parameters. Github\Api\AbstractApi

Method Details

all() public method

List releases in selected repository.

public array all ( $username, $repository )
$username string

The user who owns the repo

$repository string

The name of the repo

assets() public method

public Github\Api\Repository\Assets assets ( )
create() public method

Create new release in selected repository.

public array create ( $username, $repository, array $params )
$username string
$repository string
$params array
throws Github\Exception\MissingArgumentException
edit() public method

Edit release in selected repository.

public array edit ( $username, $repository, $id, array $params )
$username string
$repository string
$id int
$params array
latest() public method

Get the latest release.

public array latest ( $username, $repository )
$username
$repository
remove() public method

Delete a release in selected repository (Not thoroughly tested!).

public array remove ( $username, $repository, $id )
$username string

The user who owns the repo

$repository string

The name of the repo

$id int

The id of the release

show() public method

Get a release in selected repository.

public array show ( $username, $repository, $id )
$username string

The user who owns the repo

$repository string

The name of the repo

$id int

The id of the release

tag() public method

List releases for a tag.

public array tag ( $username, $repository, $tag )
$username
$repository
$tag