Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.08 KB

releases.md

File metadata and controls

46 lines (32 loc) · 1.08 KB

Repo / Releases API

Back to the "Repos API" | Back to the navigation

This Github API Endpoint is currently undocumented because it's new, but works just fine.

Get latest actual release

$release = $client->api('repo')->releases()->latest('twbs', 'bootstrap');

List releases for a tag

$release = $client->api('repo')->releases()->all('twbs', 'bootstrap', 'd890eec');

List all releases

$releases = $client->api('repo')->releases()->all('twbs', 'bootstrap');

List one release

$release = $client->api('repo')->releases()->show('twbs', 'bootstrap', $id);

Create a release

$release = $client->api('repo')->releases()->create('twbs', 'bootstrap', array('tag_name' => 'v1.1'));

Edit a release

$release = $client->api('repo')->releases()->edit('twbs', 'bootstrap', $id, array('name' => 'New release name'));

Remove a release

This works, but isn't thoroughly tested, use at your own risk.

$response = $client->api('repo')->releases()->remove('twbs', 'bootstrap', $id);