Back to the "Repos API" | Back to the navigation
$labels = $client->api('repo')->labels()->all('twbs', 'bootstrap');
$label = $client->api('repo')->labels()->show('twbs', 'bootstrap', 'feature');
Requires authentication.
$params = [
'name' => 'bug',
'color' => 'f29513',
'description' => 'Something isn\'t working',
];
$label = $client->api('repo')->labels()->create('twbs', 'bootstrap', $params);
Requires authentication.
$params = [
'new_name' => 'bug :bug:',
'color' => 'b01f26',
'description' => 'Small bug fix required',
];
$label = $client->api('repo')->labels()->update('twbs', 'bootstrap', 'bug', $params);
Requires authentication.
$label = $client->api('repo')->labels()->remove('twbs', 'bootstrap', 'bug');